public class PathMatcherFileFilter extends AbstractFileFilter
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, postVisitDirectory, preVisitDirectory, toString, visitFile, visitFileFailedequals, 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.Copyright © 2010 - 2024 Adobe. All Rights Reserved