public class FileTypeSelector extends Object implements FileSelector
FileSelector
that selects files of a particular type.Constructor and Description |
---|
FileTypeSelector(FileType type) |
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.
|
public FileTypeSelector(FileType type)
public boolean includeFile(FileSelectInfo fileInfo) throws FileSystemException
includeFile
in interface FileSelector
fileInfo
- The file selection information.FileSystemException
- if an error occurspublic boolean traverseDescendents(FileSelectInfo fileInfo)
traverseDescendents
in interface FileSelector
fileInfo
- The file selection information.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.