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 boolean
accept
(org.apache.commons.vfs2.FileSelectInfo fileInfo) Check iffileInfo
is acceptable by using the internal filter.boolean
includeFile
(org.apache.commons.vfs2.FileSelectInfo fileInfo) Methods inherited from class org.apache.commons.vfs2.FileDepthSelector
traverseDescendents
-
Constructor Details
-
FileFilterDepthSelector
public FileFilterDepthSelector(org.apache.commons.vfs2.FileFilter fileFilter, int minDepth, int maxDepth)
-
-
Method Details
-
includeFile
- Specified by:
includeFile
in interfaceorg.apache.commons.vfs2.FileSelector
- Overrides:
includeFile
in classorg.apache.commons.vfs2.FileDepthSelector
- Throws:
Exception
-
accept
protected boolean accept(org.apache.commons.vfs2.FileSelectInfo fileInfo) throws org.apache.commons.vfs2.FileSystemException Check iffileInfo
is acceptable by using the internal filter.- Parameters:
fileInfo
- fileInfo- Returns:
- true if
fileInfo
is acceptable by using the internal filter - Throws:
org.apache.commons.vfs2.FileSystemException
-