public class FileFilterSelector extends FileDepthSelector
FileSelector
that selects all children of the given fileObject.
This is to mimic the FileFilter
interface.
Constructor and Description |
---|
FileFilterSelector() |
FileFilterSelector(FileFilter fileFilter) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(FileSelectInfo fileInfo)
Determines whether the file should be selected.
|
boolean |
includeFile(FileSelectInfo fileInfo)
Determines if a file or folder should be selected.
|
traverseDescendents
public FileFilterSelector()
public FileFilterSelector(FileFilter fileFilter)
public boolean includeFile(FileSelectInfo fileInfo) throws Exception
includeFile
in interface FileSelector
includeFile
in class FileDepthSelector
fileInfo
- The file selection information.Exception
- if an error occurs.public boolean accept(FileSelectInfo fileInfo) throws Exception
fileInfo
- The file selection information.Exception
- Thrown for file system errors or illegal argument exception.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.