Class FileFilterDepthSelector
java.lang.Object
org.apache.commons.vfs2.FileDepthSelector
org.onehippo.forge.content.exim.core.util.FileFilterDepthSelector
- All Implemented Interfaces:
org.apache.commons.vfs2.FileSelector
public class FileFilterDepthSelector
extends org.apache.commons.vfs2.FileDepthSelector
A
FileSelector that selects all files in a particular depth range,
with filtering a file by the given FileFilter instance.-
Constructor Summary
ConstructorsConstructorDescriptionFileFilterDepthSelector(org.apache.commons.vfs2.FileFilter fileFilter, int minDepth, int maxDepth) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanaccept(org.apache.commons.vfs2.FileSelectInfo fileInfo) Check iffileInfois acceptable by using the internal filter.booleanincludeFile(org.apache.commons.vfs2.FileSelectInfo fileInfo) Methods inherited from class org.apache.commons.vfs2.FileDepthSelector
traverseDescendentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.commons.vfs2.FileSelector
traverseDescendants
-
Constructor Details
-
FileFilterDepthSelector
public FileFilterDepthSelector(org.apache.commons.vfs2.FileFilter fileFilter, int minDepth, int maxDepth)
-
-
Method Details
-
includeFile
- Specified by:
includeFilein interfaceorg.apache.commons.vfs2.FileSelector- Overrides:
includeFilein classorg.apache.commons.vfs2.FileDepthSelector- Throws:
Exception
-
accept
protected boolean accept(org.apache.commons.vfs2.FileSelectInfo fileInfo) throws org.apache.commons.vfs2.FileSystemException Check iffileInfois acceptable by using the internal filter.- Parameters:
fileInfo- fileInfo- Returns:
- true if
fileInfois acceptable by using the internal filter - Throws:
org.apache.commons.vfs2.FileSystemException
-