Package org.apache.commons.vfs2
Class FileFilterSelector
- java.lang.Object
-
- org.apache.commons.vfs2.FileDepthSelector
-
- org.apache.commons.vfs2.FileFilterSelector
-
- All Implemented Interfaces:
FileSelector
public class FileFilterSelector extends FileDepthSelector
AFileSelectorthat selects all children of the given fileObject.This is to mimic the
FileFilterinterface.
-
-
Constructor Summary
Constructors Constructor Description FileFilterSelector()FileFilterSelector(FileFilter fileFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanaccept(FileSelectInfo fileInfo)Determines whether the file should be selected.booleanincludeFile(FileSelectInfo fileInfo)Determines if a file or folder should be selected.-
Methods inherited from class org.apache.commons.vfs2.FileDepthSelector
traverseDescendents
-
-
-
-
Constructor Detail
-
FileFilterSelector
public FileFilterSelector()
-
FileFilterSelector
public FileFilterSelector(FileFilter fileFilter)
-
-
Method Detail
-
includeFile
public boolean includeFile(FileSelectInfo fileInfo)
Determines if a file or folder should be selected.- Specified by:
includeFilein interfaceFileSelector- Overrides:
includeFilein classFileDepthSelector- Parameters:
fileInfo- The file selection information.- Returns:
- true if the file or folder should be included, false otherwise.
-
accept
public boolean accept(FileSelectInfo fileInfo)
Determines whether the file should be selected.- Parameters:
fileInfo- The file selection information.- Returns:
- true if the file should be selected, false otherwise.
-
-