public class PathEqualsFileFilter extends AbstractFileFilter
Path object match. You can use this filter to visit the start directory when walking a
file tree with
Files.walkFileTree(java.nio.file.Path, java.util.Set, int, java.nio.file.FileVisitor).EMPTY_STRING_ARRAY| Constructor and Description |
|---|
PathEqualsFileFilter(java.nio.file.Path file)
Constructs a new instance for the given
Path. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.io.File file)
Checks to see if the File should be accepted by this filter.
|
java.nio.file.FileVisitResult |
accept(java.nio.file.Path path,
java.nio.file.attribute.BasicFileAttributes attributes)
Checks to see if the Path should be accepted by this filter.
|
accept, postVisitDirectory, preVisitDirectory, toString, visitFile, visitFileFailedequals, getClass, hashCode, notify, notifyAll, wait, wait, waitand, negate, orpublic PathEqualsFileFilter(java.nio.file.Path file)
Path.file - The file to match.public boolean accept(java.io.File file)
AbstractFileFilteraccept in interface java.io.FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic java.nio.file.FileVisitResult accept(java.nio.file.Path path,
java.nio.file.attribute.BasicFileAttributes attributes)
IOFileFilterpath - the Path to check.attributes - the file's basic attributes (TODO may be null).Copyright © 2010 - 2023 Adobe. All Rights Reserved