?????
org.apache.commons.io.file.PathFilter
??PathFilter????
???
??
This package provides extensions in the realm of java.nio.file.
This package defines an interface (IOFileFilter) that combines both
FileFilter
and FilenameFilter
.-
org.apache.commons.io.file?PathFilter???
?????PathFilter?org.apache.commons.io.file??????????????static Path[]
PathUtils.filter
(PathFilter filter, Path... paths) Applies anIOFileFilter
to the providedFile
objects.static DirectoryStream<Path>
PathUtils.newDirectoryStream
(Path dir, PathFilter pathFilter) Creates a new DirectoryStream for Paths rooted at the given directory.PathUtils.walk
(Path start, PathFilter pathFilter, int maxDepth, boolean readAttributes, FileVisitOption... options) Returns a stream of filtered paths.static AccumulatorPathVisitor
AccumulatorPathVisitor.withBigIntegerCounters
(PathFilter fileFilter, PathFilter dirFilter) Creates a new instance configured with a BigIntegerCounters.PathCounters
.static AccumulatorPathVisitor
AccumulatorPathVisitor.withLongCounters
(PathFilter fileFilter, PathFilter dirFilter) Creates a new instance configured with a longCounters.PathCounters
.?????PathFilter?org.apache.commons.io.file?????????????AccumulatorPathVisitor
(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter) Constructs a new instance.CopyDirectoryVisitor
(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, Path sourceDirectory, Path targetDirectory, CopyOption... copyOptions) Constructs a new visitor that deletes files except for the files and directories explicitly given.CountingPathVisitor
(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter) Constructs a new instance.DirectoryStreamFilter
(PathFilter pathFilter) Constructs a new instance for the given path filter. -
org.apache.commons.io.filefilter?PathFilter???
??????????interface
An interface which brings the FileFilter, FilenameFilter, and PathFilter interfaces together.?????????class
Abstracts the implementation of theFileFilter
(IO),FilenameFilter
(IO),PathFilter
(NIO) interfaces via our ownIOFileFilter
interface.class
Filters files based on a cutoff time, can filter either newer files or files equal to or older.class
AFileFilter
providing conditional AND logic across a list of file filters.class
This filter acceptsFile
s that can be executed.class
This filter acceptsFile
s that can be read.class
This filter acceptsFile
s that can be written to.class
This class turns a Java FileFilter or FilenameFilter into an IO FileFilter.class
This filter acceptsFile
s that are directories.class
This filter accepts files or directories that are empty.class
A file filter that always returns false.class
Accepts only an exactFile
object match.class
This filter acceptsFile
s that are files (not directories).class
This filter acceptsFile
s that are hidden.class
File filter for matching files containing a "magic number".class
Filters file names for a certain name.class
This filter produces a logical NOT of the filters specified.class
AFileFilter
providing conditional OR logic across a list of file filters.class
Accepts only an exactPath
object match.class
A file filter backed by a path visitor.class
Filters file names for a certain prefix.class
Filters files using supplied regular expression(s).class
Filters files based on size, can filter either smaller files or files equal to or larger than a given threshold.class
Filters files based on the suffix (what the file name ends with).class
This filter acceptsFile
s that are symbolic links.class
A file filter that always returns true.class
Filters files using the supplied wildcards.class
????Use WildcardFileFilter.