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(java.io.File file)
Checks to see if the File should be accepted by this filter.
|
boolean |
accept(java.io.File dir,
java.lang.String name)
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.
|
java.nio.file.FileVisitResult |
visitFile(java.nio.file.Path path,
java.nio.file.attribute.BasicFileAttributes attributes) |
postVisitDirectory, preVisitDirectory, toString, visitFileFailedequals, getClass, hashCode, notify, notifyAll, wait, wait, waitand, negate, orpublic PathVisitorFileFilter(PathVisitor pathVisitor)
pathVisitor - visit me.public boolean accept(java.io.File file)
AbstractFileFilteraccept in interface java.io.FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to checkpublic boolean accept(java.io.File dir,
java.lang.String name)
AbstractFileFilteraccept in interface java.io.FilenameFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterdir - the directory File to checkname - the file name within the directory 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).public java.nio.file.FileVisitResult visitFile(java.nio.file.Path path,
java.nio.file.attribute.BasicFileAttributes attributes)
throws java.io.IOException
visitFile in interface java.nio.file.FileVisitor<java.nio.file.Path>visitFile in class AbstractFileFilterjava.io.IOExceptionCopyright © 2010 - 2023 Adobe. All Rights Reserved