Uses of Interface
org.apache.commons.io.file.PathFilter
-
Packages that use PathFilter Package Description org.apache.commons.io.file This package provides extensions in the realm of java.nio.file.org.apache.commons.io.filefilter This package defines an interface (IOFileFilter) that combines bothFileFilterandFilenameFilter. -
-
Uses of PathFilter in org.apache.commons.io.file
Methods in org.apache.commons.io.file that return PathFilter Modifier and Type Method Description PathFilterDirectoryStreamFilter. getPathFilter()Gets the path filter.Methods in org.apache.commons.io.file with parameters of type PathFilter Modifier and Type Method Description static java.nio.file.Path[]PathUtils. filter(PathFilter filter, java.nio.file.Path... paths)Applies anIOFileFilterto the providedFileobjects.static java.nio.file.DirectoryStream<java.nio.file.Path>PathUtils. newDirectoryStream(java.nio.file.Path dir, PathFilter pathFilter)Creates a new DirectoryStream for Paths rooted at the given directory.static java.util.stream.Stream<java.nio.file.Path>PathUtils. walk(java.nio.file.Path start, PathFilter pathFilter, int maxDepth, boolean readAttributes, java.nio.file.FileVisitOption... options)Returns a stream of filtered paths.static AccumulatorPathVisitorAccumulatorPathVisitor. withBigIntegerCounters(PathFilter fileFilter, PathFilter dirFilter)Creates a new instance configured with a BigIntegerCounters.PathCounters.static AccumulatorPathVisitorAccumulatorPathVisitor. withLongCounters(PathFilter fileFilter, PathFilter dirFilter)Creates a new instance configured with a longCounters.PathCounters.Constructors in org.apache.commons.io.file with parameters of type PathFilter Constructor Description AccumulatorPathVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter)Constructs a new instance.CopyDirectoryVisitor(Counters.PathCounters pathCounter, PathFilter fileFilter, PathFilter dirFilter, java.nio.file.Path sourceDirectory, java.nio.file.Path targetDirectory, java.nio.file.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. -
Uses of PathFilter in org.apache.commons.io.filefilter
Subinterfaces of PathFilter in org.apache.commons.io.filefilter Modifier and Type Interface Description interfaceIOFileFilterAn interface which brings the FileFilter, FilenameFilter, and PathFilter interfaces together.Classes in org.apache.commons.io.filefilter that implement PathFilter Modifier and Type Class Description classAbstractFileFilterAbstracts the implementation of theFileFilter(IO),FilenameFilter(IO),PathFilter(NIO) interfaces via our ownIOFileFilterinterface.classAgeFileFilterFilters files based on a cutoff time, can filter either newer files or files equal to or older.classAndFileFilterAFileFilterproviding conditional AND logic across a list of file filters.classCanExecuteFileFilterThis filter acceptsFiles that can be executed.classCanReadFileFilterThis filter acceptsFiles that can be read.classCanWriteFileFilterThis filter acceptsFiles that can be written to.classDelegateFileFilterThis class turns a Java FileFilter or FilenameFilter into an IO FileFilter.classDirectoryFileFilterThis filter acceptsFiles that are directories.classEmptyFileFilterThis filter accepts files or directories that are empty.classFalseFileFilterA file filter that always returns false.classFileEqualsFileFilterAccepts only an exactFileobject match.classFileFileFilterThis filter acceptsFiles that are files (not directories).classHiddenFileFilterThis filter acceptsFiles that are hidden.classMagicNumberFileFilterFile filter for matching files containing a "magic number".classNameFileFilterFilters file names for a certain name.classNotFileFilterThis filter produces a logical NOT of the filters specified.classOrFileFilterAFileFilterproviding conditional OR logic across a list of file filters.classPathEqualsFileFilterAccepts only an exactPathobject match.classPathVisitorFileFilterA file filter backed by a path visitor.classPrefixFileFilterFilters file names for a certain prefix.classRegexFileFilterFilters files using supplied regular expression(s).classSizeFileFilterFilters files based on size, can filter either smaller files or files equal to or larger than a given threshold.classSuffixFileFilterFilters files based on the suffix (what the file name ends with).classTrueFileFilterA file filter that always returns true.classWildcardFileFilterFilters files using the supplied wildcards.classWildcardFilterDeprecated.Use WildcardFileFilter.
-