public class FileDepthSelector extends Object implements FileSelector
FileSelector
that selects all files in a particular depth range.Constructor and Description |
---|
FileDepthSelector()
Creates a selector with the same minimum and maximum depths of 0.
|
FileDepthSelector(int minMaxDepth)
Creates a selector with the same minimum and maximum depths.
|
FileDepthSelector(int minDepth,
int maxDepth)
Creates a selector with the given minimum and maximum depths.
|
Modifier and Type | Method and 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.
|
public FileDepthSelector(int minDepth, int maxDepth)
minDepth
- minimum depthmaxDepth
- maximum depthpublic FileDepthSelector(int minMaxDepth)
minMaxDepth
- minimum and maximum depthpublic FileDepthSelector()
public boolean includeFile(FileSelectInfo fileInfo) throws Exception
includeFile
in interface FileSelector
fileInfo
- The file selection informationException
- if an error occurs.public boolean traverseDescendents(FileSelectInfo fileInfo) throws Exception
traverseDescendents
in interface FileSelector
fileInfo
- The file selection informationException
- if an error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.