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.
 
- 
Constructor SummaryConstructorsConstructorDescriptionConstructs a new instance without a FileFilter.FileFilterSelector(FileFilter fileFilter) Constructs a new instance with a FileFilter.
- 
Method SummaryModifier and TypeMethodDescriptionbooleanaccept(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.FileDepthSelectortraverseDescendentsMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.vfs2.FileSelectortraverseDescendants
- 
Constructor Details- 
FileFilterSelectorpublic FileFilterSelector()Constructs a new instance without a FileFilter.
- 
FileFilterSelectorConstructs a new instance with a FileFilter.- Parameters:
- fileFilter- the FileFilter.
 
 
- 
- 
Method Details- 
acceptDetermines 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.
 
- 
includeFileDetermines if a file or folder should be selected.- Specified by:
- includeFilein interface- FileSelector
- Overrides:
- includeFilein class- FileDepthSelector
- Parameters:
- fileInfo- The file selection information.
- Returns:
- true if the file or folder should be included, false otherwise.
- Throws:
- Exception- if an error occurs.
 
 
-