public class PathMatcherFileFilter extends AbstractFileFilter
PathMatcher
.Modifier and Type | Field and Description |
---|---|
private java.nio.file.PathMatcher |
pathMatcher |
EMPTY_STRING_ARRAY
Constructor and Description |
---|
PathMatcherFileFilter(java.nio.file.PathMatcher pathMatcher)
Constructs a new instance to perform matching with a PathMatcher.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File file)
Checks to see if the File should be accepted by this filter.
|
boolean |
matches(java.nio.file.Path path)
Tests if a Path should be accepted by this filter.
|
accept, append, append, get, handle, postVisitDirectory, preVisitDirectory, toDefaultFileVisitResult, toFileVisitResult, toString, visitFile, visitFileFailed
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
accept, and, negate, or
public PathMatcherFileFilter(java.nio.file.PathMatcher pathMatcher)
pathMatcher
- The PathMatcher delegate.public boolean accept(java.io.File file)
AbstractFileFilter
accept
in interface java.io.FileFilter
accept
in interface IOFileFilter
accept
in class AbstractFileFilter
file
- the File to checkpublic boolean matches(java.nio.file.Path path)
IOFileFilter
path
- the Path to check.