org.apache.commons.vfs2
Class FileTypeSelector
java.lang.Object
org.apache.commons.vfs2.FileTypeSelector
- All Implemented Interfaces:
- FileSelector
public class FileTypeSelector
- extends Object
- implements FileSelector
A FileSelector that selects files of a particular type.
- Version:
- $Revision: 1035154 $ $Date: 2010-11-15 11:58:06 +0530 (Mon, 15 Nov 2010) $
- Author:
- Commons VFS team
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileTypeSelector
public FileTypeSelector(FileType type)
includeFile
public boolean includeFile(FileSelectInfo fileInfo)
throws FileSystemException
- Determines if a file or folder should be selected.
- Specified by:
includeFile in interface FileSelector
- Parameters:
fileInfo - The file selection information.
- Returns:
- true if the file or folder should be selected.
- Throws:
FileSystemException - if an error occurs
traverseDescendents
public boolean traverseDescendents(FileSelectInfo fileInfo)
- Determines whether a folder should be traversed.
- Specified by:
traverseDescendents in interface FileSelector
- Parameters:
fileInfo - The file selection information.
- Returns:
- true if the file or folder should be traversed.
Copyright © 2002–2015 WSO2. All rights reserved.