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(Path file)
Constructs a new instance for the given
Path. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File file)
Checks to see if the File should be accepted by this filter.
|
FileVisitResult |
accept(Path path,
BasicFileAttributes attributes)
Checks to see if the Path should be accepted by this filter.
|
accept, handle, postVisitDirectory, preVisitDirectory, toString, visitFile, visitFileFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, negate, orpublic boolean accept(File file)
AbstractFileFilteraccept in interface FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic FileVisitResult accept(Path path, BasicFileAttributes attributes)
IOFileFilterpath - the Path to check.attributes - the file's basic attributes (TODO may be null).Copyright © 2002–2021 The Apache Software Foundation. All rights reserved.