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)
includeFile in interface FileSelectorfileInfo - The file selection informationpublic boolean traverseDescendents(FileSelectInfo fileInfo)
traverseDescendents in interface FileSelectorfileInfo - The file selection informationCopyright © 2002–2017 The Apache Software Foundation. All rights reserved.