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, visitFileFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, negate, orpublic PathMatcherFileFilter(java.nio.file.PathMatcher pathMatcher)
pathMatcher - The PathMatcher delegate.public boolean accept(java.io.File file)
AbstractFileFilteraccept in interface java.io.FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic boolean matches(java.nio.file.Path path)
IOFileFilterpath - the Path to check.