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()
Constructs a new instance without a FileFilter.
|
FileFilterSelector(FileFilter fileFilter)
Constructs a new instance with a 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
traverseDescendants
public FileFilterSelector()
public FileFilterSelector(FileFilter fileFilter)
fileFilter
- the FileFilter.public boolean accept(FileSelectInfo fileInfo) throws Exception
fileInfo
- The file selection information.Exception
- Thrown for file system errors or illegal argument exception.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.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.