org.apache.commons.io.filefilter
public class DelegateFileFilter extends AbstractFileFilter
Since: Commons IO 1.0
Version: $Revision: 471628 $ $Date: 2006-11-06 05:06:45 +0100 (Mo, 06 Nov 2006) $
Field Summary | |
---|---|
FileFilter | fileFilter The File filter |
FilenameFilter | filenameFilter The Filename filter |
Constructor Summary | |
---|---|
DelegateFileFilter(FilenameFilter filter)
Constructs a delegate file filter around an existing FilenameFilter.
| |
DelegateFileFilter(FileFilter filter)
Constructs a delegate file filter around an existing FileFilter.
|
Method Summary | |
---|---|
boolean | accept(File file)
Checks the filter.
|
boolean | accept(File dir, String name)
Checks the filter.
|
Parameters: filter the filter to decorate
Parameters: filter the filter to decorate
Parameters: file the file to check
Returns: true if the filter matches
Parameters: dir the directory name the filename in the directory
Returns: true if the filter matches