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
AFileSelector
that 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 boolean
includeFile(FileSelectInfo fileInfo)
Determines if a file or folder should be selected.boolean
traverseDescendents(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:
includeFile
in 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:
traverseDescendents
in interfaceFileSelector
- Parameters:
fileInfo
- The file selection information.- Returns:
- true if descendants should be traversed, false otherwise.
- Throws:
java.lang.Exception
- if an error occurs.
-
-