org.apache.commons.vfs
Class FileTypeSelector
java.lang.Object
org.apache.commons.vfs.FileTypeSelector
- All Implemented Interfaces:
- FileSelector
public class FileTypeSelector
- extends Object
- implements FileSelector
A FileSelector
that selects files of a particular type.
- Version:
- $Revision: 764356 $ $Date: 2009-04-13 06:06:01 +0200(lun, 13 apr 2009) $
- Author:
- Adam Murdoch
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-2011 Apache Software Foundation. All Rights Reserved.