public class PathMatcherFileFilter extends AbstractFileFilter
PathMatcher.EMPTY_STRING_ARRAY| Constructor and Description |
|---|
PathMatcherFileFilter(PathMatcher pathMatcher)
Constructs a new instance to perform matching with a PathMatcher.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File file)
Tests to see if the File should be accepted by this filter.
|
boolean |
matches(Path path)
Tests if a Path should be accepted by this filter.
|
accept, append, append, get, handle, isDirectory, isFile, postVisitDirectory, preVisitDirectory, toDefaultFileVisitResult, toFileVisitResult, toString, visitFile, visitFileFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaccept, and, negate, orpublic PathMatcherFileFilter(PathMatcher pathMatcher)
pathMatcher - The PathMatcher delegate.public boolean accept(File file)
AbstractFileFilteraccept in interface FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic boolean matches(Path path)
IOFileFilterpath - the Path to check.