public interface IOFileFilter extends FileFilter, FilenameFilter, PathFilter
| Modifier and Type | Field and Description |
|---|---|
static String[] |
EMPTY_STRING_ARRAY
An empty String array.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File file)
Checks to see if the File should be accepted by this filter.
|
boolean |
accept(File dir,
String name)
Checks to see if the File should be accepted by this filter.
|
default FileVisitResult |
accept(Path path,
BasicFileAttributes attributes)
Checks to see if the Path should be accepted by this filter.
|
default IOFileFilter |
and(IOFileFilter fileFilter)
Creates a new "and" filter with this filter.
|
default IOFileFilter |
negate()
Creates a new "not" filter with this filter.
|
default IOFileFilter |
or(IOFileFilter fileFilter)
Creates a new "or" filter with this filter.
|
static final String[] EMPTY_STRING_ARRAY
boolean accept(File file)
Defined in FileFilter.
accept in interface FileFilterfile - the File to check.boolean accept(File dir, String name)
Defined in FilenameFilter.
accept in interface FilenameFilterdir - the directory File to check.name - the file name within the directory to check.default FileVisitResult accept(Path path, BasicFileAttributes attributes)
accept in interface PathFilterpath - the Path to check.attributes - the file's basic attributes (TODO may be null).default IOFileFilter and(IOFileFilter fileFilter)
fileFilter - the filter to "and".default IOFileFilter negate()
default IOFileFilter or(IOFileFilter fileFilter)
fileFilter - the filter to "or".Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.