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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittraverseDescendantspublic FileDepthSelector()
public FileDepthSelector(int minMaxDepth)
minMaxDepth - minimum and maximum depthpublic FileDepthSelector(int minDepth,
int maxDepth)
minDepth - minimum depthmaxDepth - maximum depthpublic boolean includeFile(FileSelectInfo fileInfo) throws Exception
includeFile in interface FileSelectorfileInfo - The file selection informationException - if an error occurs.public boolean traverseDescendents(FileSelectInfo fileInfo) throws Exception
traverseDescendents in interface FileSelectorfileInfo - The file selection informationException - if an error occurs.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.