public interface IOFileFilter extends java.io.FileFilter, java.io.FilenameFilter, PathFilter, java.nio.file.PathMatcher
Modifier and Type | Field and Description |
---|---|
static java.lang.String[] |
EMPTY_STRING_ARRAY
An empty String array.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File file)
Tests if a File should be accepted by this filter.
|
boolean |
accept(java.io.File dir,
java.lang.String name)
Tests if a File should be accepted by this filter.
|
default java.nio.file.FileVisitResult |
accept(java.nio.file.Path path,
java.nio.file.attribute.BasicFileAttributes attributes)
Checks to see if a Path should be accepted by this filter.
|
default IOFileFilter |
and(IOFileFilter fileFilter)
Constructs a new "and" filter with this filter.
|
default boolean |
matches(java.nio.file.Path path)
Tests if a Path should be accepted by this filter.
|
default IOFileFilter |
negate()
Constructs a new "not" filter with this filter.
|
default IOFileFilter |
or(IOFileFilter fileFilter)
Constructs a new "or" filter with this filter.
|
static final java.lang.String[] EMPTY_STRING_ARRAY
boolean accept(java.io.File file)
Defined in FileFilter
.
accept
in interface java.io.FileFilter
file
- the File to check.boolean accept(java.io.File dir, java.lang.String name)
Defined in FilenameFilter
.
accept
in interface java.io.FilenameFilter
dir
- the directory File to check.name
- the file name within the directory to check.default java.nio.file.FileVisitResult accept(java.nio.file.Path path, java.nio.file.attribute.BasicFileAttributes attributes)
accept
in interface PathFilter
path
- 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 boolean matches(java.nio.file.Path path)
matches
in interface java.nio.file.PathMatcher
path
- the Path to check.default IOFileFilter negate()
default IOFileFilter or(IOFileFilter fileFilter)
fileFilter
- the filter to "or".