Package org.apache.commons.vfs
Class FileFilterSelector
- java.lang.Object
-
- org.apache.commons.vfs.FileDepthSelector
-
- org.apache.commons.vfs.FileFilterSelector
-
- All Implemented Interfaces:
FileSelector
public class FileFilterSelector extends FileDepthSelector
AFileSelector
that selects all children of the given fileObject.
This is to mimic theFileFilter
interface- Author:
- Mario Ivankovits
-
-
Constructor Summary
Constructors Constructor Description FileFilterSelector()
FileFilterSelector(FileFilter fileFilter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
accept(FileSelectInfo fileInfo)
boolean
includeFile(FileSelectInfo fileInfo)
Determines if a file or folder should be selected.-
Methods inherited from class org.apache.commons.vfs.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:
includeFile
in interfaceFileSelector
- Overrides:
includeFile
in classFileDepthSelector
- Parameters:
fileInfo
- the file or folder to select.- Returns:
- true if the file should be selected.
-
accept
public boolean accept(FileSelectInfo fileInfo)
-
-