? PathEqualsFileFilter
java.lang.Object
org.apache.commons.io.filefilter.AbstractFileFilter
org.apache.commons.io.filefilter.PathEqualsFileFilter
- ????????:
FileFilter
,FilenameFilter
,FileVisitor<Path>
,PathFilter
,PathVisitor
,IOFileFilter
Accepts only an exact
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)
.- ???????:
- 2.9.0
-
????
???????? org.apache.commons.io.filefilter.IOFileFilter
EMPTY_STRING_ARRAY
-
?????
??? -
????
??????????boolean
Checks to see if the File should be accepted by this filter.accept
(Path path, BasicFileAttributes attributes) Checks to see if the Path should be accepted by this filter.??????? org.apache.commons.io.filefilter.AbstractFileFilter
accept, handle, postVisitDirectory, preVisitDirectory, toString, visitFile, visitFileFailed
??????? java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
???????? org.apache.commons.io.filefilter.IOFileFilter
and, negate, or
-
???????
-
PathEqualsFileFilter
Constructs a new instance for the givenPath
.- ??:
file
- The file to match.
-
-
??????
-
accept
???????:AbstractFileFilter
Checks to see if the File should be accepted by this filter.- ???:
accept
????FileFilter
- ???:
accept
????IOFileFilter
- ??:
accept
???AbstractFileFilter
- ??:
file
- the File to check- ??:
- true if this file matches the test
-
accept
????????:IOFileFilter
Checks to see if the Path should be accepted by this filter.- ??:
path
- the Path to check.attributes
- the file's basic attributes (TODO may be null).- ??:
- true if this path matches the test.
-