org.apache.commons.io.filefilter
public class DelegateFileFilter extends AbstractFileFilter implements Serializable
Since: Commons IO 1.0
Version: $Revision: 591058 $ $Date: 2007-11-01 15:47:05 +0000 (Thu, 01 Nov 2007) $
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.
|
String | toString()
Provide a String representaion of this file 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
Returns: a String representaion