FileSelector
FileFilterSelector
public class FileDepthSelector extends java.lang.Object implements FileSelector
FileSelector
that selects all files in a particular depth range.Constructor | 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 | 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 FileSelector
fileInfo
- The file selection informationpublic boolean traverseDescendents(FileSelectInfo fileInfo)
traverseDescendents
in interface FileSelector
fileInfo
- The file selection information