public class FileTypeSelector extends Object implements FileSelector
FileSelector
that selects files of a particular type.Constructor and Description |
---|
FileTypeSelector(FileType type)
Creates a new selector for the given file 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)
type
- The file type to selectpublic boolean includeFile(FileSelectInfo fileInfo) throws Exception
includeFile
in interface FileSelector
fileInfo
- The file selection information.FileSystemException
- if an error occursException
- if an error occurs.public boolean traverseDescendents(FileSelectInfo fileInfo) throws Exception
traverseDescendents
in interface FileSelector
fileInfo
- The file selection information.Exception
- if an error occurs.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.