public class DelegateFileFilter extends AbstractFileFilter implements Serializable
Serialization is deprecated and will be removed in 3.0.
EMPTY_STRING_ARRAY| Constructor and Description |
|---|
DelegateFileFilter(FileFilter fileFilter)
Constructs a delegate file filter around an existing FileFilter.
|
DelegateFileFilter(FilenameFilter fileNameFilter)
Constructs a delegate file filter around an existing FilenameFilter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File file)
Tests the filter.
|
boolean |
accept(File dir,
String name)
Tests the filter.
|
String |
toString()
Provide a String representation of this file filter.
|
append, append, get, handle, isDirectory, isFile, postVisitDirectory, preVisitDirectory, toDefaultFileVisitResult, toFileVisitResult, visitFile, visitFileFailedpublic DelegateFileFilter(FileFilter fileFilter)
fileFilter - the filter to decoratepublic DelegateFileFilter(FilenameFilter fileNameFilter)
fileNameFilter - the filter to decoratepublic boolean accept(File file)
accept in interface FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the file to checkpublic boolean accept(File dir, String name)
accept in interface FilenameFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterdir - the directoryname - the file name in the directorypublic String toString()
toString in class AbstractFileFilter