org.apache.commons.vfs
Class FileDepthSelector
java.lang.Object
org.apache.commons.vfs.FileDepthSelector
- All Implemented Interfaces:
- FileSelector
- Direct Known Subclasses:
- FileFilterSelector
- public class FileDepthSelector
- extends Object
- implements FileSelector
A FileSelector
that selects all files in a particular depth range.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
- Author:
- Adam Murdoch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileDepthSelector
public FileDepthSelector(int minDepth,
int maxDepth)
includeFile
public boolean includeFile(FileSelectInfo fileInfo)
- Determines if a file or folder should be selected.
- Specified by:
includeFile
in interface FileSelector
- Parameters:
fileInfo
- the file or folder to select.
- Returns:
- true if the file should be selected.
traverseDescendents
public boolean traverseDescendents(FileSelectInfo fileInfo)
- Determines whether a folder should be traversed.
- Specified by:
traverseDescendents
in interface FileSelector
- Parameters:
fileInfo
- the file or folder to select.
- Returns:
- true if the folder should be traversed.
Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.