Uses of Interface
org.apache.commons.io.file.PathFilter
-
Uses of PathFilter in org.apache.commons.io.file
Modifier and TypeMethodDescriptionstatic 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) Constructs a new instance configured with a BigIntegerCounters.PathCounters
.static AccumulatorPathVisitor
AccumulatorPathVisitor.withLongCounters
(PathFilter fileFilter, PathFilter dirFilter) Constructs a new instance configured with a longCounters.PathCounters
.ModifierConstructorDescriptionAccumulatorPathVisitor
(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter) Constructs a new instance.AccumulatorPathVisitor
(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, IOBiFunction<Path, IOException, FileVisitResult> visitFileFailed) 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.CountingPathVisitor
(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, IOBiFunction<Path, IOException, FileVisitResult> visitFileFailed) Constructs a new instance.DirectoryStreamFilter
(PathFilter pathFilter) Constructs a new instance for the given path filter. -
Uses of PathFilter in org.apache.commons.io.filefilter
Modifier and TypeInterfaceDescriptioninterface
An interface which brings theFileFilter
,FilenameFilter
,PathFilter
, andPathMatcher
interfaces together.Modifier and TypeClassDescriptionclass
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
Delegates matching to aPathMatcher
.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
Deprecated.Use WildcardFileFilter.