public class PathVisitorFileFilter extends AbstractFileFilter
EMPTY_STRING_ARRAY| Constructor and Description |
|---|
PathVisitorFileFilter(PathVisitor pathVisitor)
Constructs a new instance that will forward calls to the given visitor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(File file)
Checks to see if the File should be accepted by this filter.
|
boolean |
accept(File dir,
String name)
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.
|
FileVisitResult |
visitFile(Path path,
BasicFileAttributes attributes) |
handle, postVisitDirectory, preVisitDirectory, toString, visitFileFailedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitand, negate, orpublic PathVisitorFileFilter(PathVisitor pathVisitor)
pathVisitor - visit me.public boolean accept(File file)
AbstractFileFilteraccept in interface FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic boolean accept(File dir, String name)
AbstractFileFilteraccept in interface FilenameFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterdir - the directory File to checkname - the file name within the directory to checkpublic FileVisitResult accept(Path path, BasicFileAttributes attributes)
IOFileFilterpath - the Path to check.attributes - the file's basic attributes (TODO may be null).public FileVisitResult visitFile(Path path, BasicFileAttributes attributes) throws IOException
visitFile in interface FileVisitor<Path>visitFile in class AbstractFileFilterIOExceptionCopyright © 2002–2021 The Apache Software Foundation. All rights reserved.