Package org.apache.commons.vfs2
Class AllFileSelector
- java.lang.Object
-
- org.apache.commons.vfs2.AllFileSelector
-
- All Implemented Interfaces:
FileSelector
public class AllFileSelector extends java.lang.Object implements FileSelector
AFileSelectorthat selects everything.
-
-
Constructor Summary
Constructors Constructor Description AllFileSelector()Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanincludeFile(FileSelectInfo fileInfo)Determines if a file or folder should be selected.booleantraverseDescendents(FileSelectInfo fileInfo)Determines whether a folder should be traversed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.commons.vfs2.FileSelector
traverseDescendants
-
-
-
-
Constructor Detail
-
AllFileSelector
public AllFileSelector()
Constructs a new instance.
-
-
Method Detail
-
includeFile
public boolean includeFile(FileSelectInfo fileInfo) throws java.lang.Exception
Determines if a file or folder should be selected.- Specified by:
includeFilein interfaceFileSelector- Parameters:
fileInfo- The file selection information.- Returns:
- true if the file should be selected, false otherwise.
- Throws:
java.lang.Exception- if an error occurs.
-
traverseDescendents
public boolean traverseDescendents(FileSelectInfo fileInfo) throws java.lang.Exception
Determines whether a folder should be traversed.- Specified by:
traverseDescendentsin interfaceFileSelector- Parameters:
fileInfo- The file selection information.- Returns:
- true if descendants should be traversed, false otherwise.
- Throws:
java.lang.Exception- if an error occurs.
-
-