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
AFileSelector
that selects all files in a particular depth range, with filtering a file by the givenFileFilter
instance.
-
-
Constructor Summary
Constructors Constructor Description FileFilterDepthSelector(org.apache.commons.vfs2.FileFilter fileFilter, int minDepth, int maxDepth)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected 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)
-
-
-
Method Detail
-
includeFile
public boolean includeFile(org.apache.commons.vfs2.FileSelectInfo fileInfo) throws Exception
- 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
-
-