public class FileFilterSelector extends FileDepthSelector
FileSelector
that selects all children of the given fileObject.
This is to mimic the FileFilter
interface.
Modifier and Type | Field and Description |
---|---|
private FileFilter |
fileFilter
The FileFilter.
|
Constructor and Description |
---|
FileFilterSelector() |
FileFilterSelector(FileFilter fileFilter) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FileSelectInfo fileInfo)
Determines whether the file should be selected.
|
boolean |
includeFile(FileSelectInfo fileInfo)
Determines if a file or folder should be selected.
|
traverseDescendents
private final FileFilter fileFilter
public FileFilterSelector()
public FileFilterSelector(FileFilter fileFilter)
public boolean includeFile(FileSelectInfo fileInfo) throws java.lang.Exception
includeFile
in interface FileSelector
includeFile
in class FileDepthSelector
fileInfo
- The file selection information.java.lang.Exception
- if an error occurs.public boolean accept(FileSelectInfo fileInfo) throws java.lang.Exception
fileInfo
- The file selection information.java.lang.Exception
- Thrown for file system errors or illegal argument exception.