Package org.apache.commons.vfs2
Class FileFilterSelector
java.lang.Object
org.apache.commons.vfs2.FileDepthSelector
org.apache.commons.vfs2.FileFilterSelector
- All Implemented Interfaces:
FileSelector
A
FileSelector
that selects all children of the given fileObject.
This is to mimic the FileFilter
interface.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(FileSelectInfo fileInfo) Determines whether the file should be selected.boolean
includeFile
(FileSelectInfo fileInfo) Determines if a file or folder should be selected.Methods inherited from class org.apache.commons.vfs2.FileDepthSelector
traverseDescendents
-
Field Details
-
fileFilter
The FileFilter.
-
-
Constructor Details
-
FileFilterSelector
public FileFilterSelector() -
FileFilterSelector
-
-
Method Details
-
includeFile
Determines if a file or folder should be selected.- Specified by:
includeFile
in interfaceFileSelector
- Overrides:
includeFile
in classFileDepthSelector
- Parameters:
fileInfo
- The file selection information.- Returns:
- true if the file or folder should be included, false otherwise.
- Throws:
Exception
- if an error occurs.
-
accept
Determines whether the file should be selected.- Parameters:
fileInfo
- The file selection information.- Returns:
- true if the file should be selected, false otherwise.
- Throws:
Exception
- Thrown for file system errors or illegal argument exception.
-