001/*
002 * Version 0.70 01/04/2002
003 *
004 * Visit my url for update: http://www.geocities.com/beapetrovicova/
005 * 
006 * jFtp was developed by Bea Petrovicova <beapetrovicova@yahoo.com>.
007 * The design and implementation of jFtp are available for royalty-free 
008 * adoption and use. This software is provided 'as is' without any 
009 * guarantees. Copyright is retained by Bea Petrovicova. Redistribution 
010 * of any part of jFtp or any derivative works must include this notice.
011 * 
012 */  
013
014package cz.dhl.io;
015
016/**
017 * Defines interface of filtering files.
018 * 
019 * @Version 0.70 01/04/2002
020 * @author Bea Petrovicova <beapetrovicova@yahoo.com>
021 */
022public interface CoFilenameFilter 
023{
024   /** Tests if a specified file should be included in a file list.
025    * @param dir the directory in which the file was found
026    * @param name the name of the file
027    * @return true if and only if the name should 
028      be included in the file list; false otherwise. */
029   public boolean accept(CoFile dir, String name);
030}