Uses of Interface
org.apache.commons.io.filefilter.IOFileFilter
Package
Description
Provides classes for working with streams, readers, writers and files.
-
Uses of IOFileFilter in org.apache.commons.io
Modifier and TypeMethodDescriptionFileUtils.iterateFiles
(File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) Iterates over the files in given directory (and optionally its subdirectories).FileUtils.iterateFilesAndDirs
(File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) Iterates over the files in given directory (and optionally its subdirectories).static Collection<File>
FileUtils.listFiles
(File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) Finds files within a given directory (and optionally its subdirectories).static Collection<File>
FileUtils.listFilesAndDirs
(File directory, IOFileFilter fileFilter, IOFileFilter dirFilter) Finds files within a given directory (and optionally its subdirectories).ModifierConstructorDescriptionprotected
DirectoryWalker
(IOFileFilter directoryFilter, IOFileFilter fileFilter, int depthLimit) Deprecated.Constructs an instance with a directory and a file filter and an optional limit on the depth navigated to. -
Uses of IOFileFilter in org.apache.commons.io.filefilter
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.Modifier and TypeFieldDescriptionstatic final IOFileFilter
CanExecuteFileFilter.CAN_EXECUTE
Singleton instance of executable filterstatic final IOFileFilter
CanReadFileFilter.CAN_READ
Singleton instance of readable filterstatic final IOFileFilter
CanWriteFileFilter.CAN_WRITE
Singleton instance of writable filterstatic final IOFileFilter
CanExecuteFileFilter.CANNOT_EXECUTE
Singleton instance of not executable filterstatic final IOFileFilter
CanReadFileFilter.CANNOT_READ
Singleton instance of not readable filterstatic final IOFileFilter
CanWriteFileFilter.CANNOT_WRITE
Singleton instance of not writable filterstatic final IOFileFilter
DirectoryFileFilter.DIRECTORY
Singleton instance of directory filter.static final IOFileFilter
EmptyFileFilter.EMPTY
Singleton instance of empty filterstatic final IOFileFilter
FalseFileFilter.FALSE
Singleton instance of false filter.static final IOFileFilter
FileFileFilter.FILE
Deprecated.static final IOFileFilter
HiddenFileFilter.HIDDEN
Singleton instance of hidden filterstatic final IOFileFilter
DirectoryFileFilter.INSTANCE
Singleton instance of directory filter.static final IOFileFilter
FalseFileFilter.INSTANCE
Singleton instance of false filter.static final IOFileFilter
FileFileFilter.INSTANCE
Singleton instance of file filter.static final IOFileFilter
TrueFileFilter.INSTANCE
Singleton instance of true filter.static final IOFileFilter
EmptyFileFilter.NOT_EMPTY
Singleton instance of not-empty filterstatic final IOFileFilter
CanReadFileFilter.READ_ONLY
Singleton instance of read-only filterstatic final IOFileFilter
TrueFileFilter.TRUE
Singleton instance of true filter.static final IOFileFilter
HiddenFileFilter.VISIBLE
Singleton instance of visible filterModifier and TypeMethodDescriptionstatic IOFileFilter
FileFilterUtils.ageFileFilter
(long cutoffMillis) Returns a filter that returns true if the file was last modified before or at the specified cutoff time.static IOFileFilter
FileFilterUtils.ageFileFilter
(long cutoffMillis, boolean acceptOlder) Returns a filter that filters files based on a cutoff time.static IOFileFilter
FileFilterUtils.ageFileFilter
(File cutoffReference) Returns a filter that returns true if the file was last modified before or at the same time as the specified reference file.static IOFileFilter
FileFilterUtils.ageFileFilter
(File cutoffReference, boolean acceptOlder) Returns a filter that filters files based on a cutoff reference file.static IOFileFilter
FileFilterUtils.ageFileFilter
(Date cutoffDate) Returns a filter that returns true if the file was last modified before or at the specified cutoff date.static IOFileFilter
FileFilterUtils.ageFileFilter
(Date cutoffDate, boolean acceptOlder) Returns a filter that filters files based on a cutoff date.FalseFileFilter.and
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.and
(IOFileFilter... filters) Returns a filter that ANDs the specified filters.default IOFileFilter
IOFileFilter.and
(IOFileFilter fileFilter) Constructs a new "and" filter with this filter.TrueFileFilter.and
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.andFileFilter
(IOFileFilter filter1, IOFileFilter filter2) Deprecated.static IOFileFilter
FileFilterUtils.asFileFilter
(FileFilter filter) Returns anIOFileFilter
that wraps theFileFilter
instance.static IOFileFilter
FileFilterUtils.asFileFilter
(FilenameFilter filter) Returns anIOFileFilter
that wraps theFilenameFilter
instance.static IOFileFilter
FileFilterUtils.directoryFileFilter()
Returns a filter that checks if the file is a directory.static IOFileFilter
FileFilterUtils.falseFileFilter()
Returns a filter that always returns false.static IOFileFilter
FileFilterUtils.fileFileFilter()
Returns a filter that checks if the file is a file (and not a directory).static IOFileFilter
FileFilterUtils.magicNumberFileFilter
(byte[] magicNumber) Returns a filter that accepts files that begin with the provided magic number.static IOFileFilter
FileFilterUtils.magicNumberFileFilter
(byte[] magicNumber, long offset) Returns a filter that accepts files that contains the provided magic number at a specified offset within the file.static IOFileFilter
FileFilterUtils.magicNumberFileFilter
(String magicNumber) Returns a filter that accepts files that begin with the provided magic number.static IOFileFilter
FileFilterUtils.magicNumberFileFilter
(String magicNumber, long offset) Returns a filter that accepts files that contains the provided magic number at a specified offset within the file.static IOFileFilter
FileFilterUtils.makeCVSAware
(IOFileFilter filter) Decorates a filter to make it ignore CVS directories.static IOFileFilter
FileFilterUtils.makeDirectoryOnly
(IOFileFilter filter) Decorates a filter so that it only applies to directories and not to files.static IOFileFilter
FileFilterUtils.makeFileOnly
(IOFileFilter filter) Decorates a filter so that it only applies to files and not to directories.static IOFileFilter
FileFilterUtils.makeSVNAware
(IOFileFilter filter) Decorates a filter to make it ignore SVN directories.static IOFileFilter
FileFilterUtils.nameFileFilter
(String name) Returns a filter that returns true if the file name matches the specified text.static IOFileFilter
FileFilterUtils.nameFileFilter
(String name, IOCase ioCase) Returns a filter that returns true if the file name matches the specified text.FalseFileFilter.negate()
default IOFileFilter
IOFileFilter.negate()
Constructs a new "not" filter with this filter.TrueFileFilter.negate()
static IOFileFilter
FileFilterUtils.notFileFilter
(IOFileFilter filter) Returns a filter that NOTs the specified filter.FalseFileFilter.or
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.or
(IOFileFilter... filters) Returns a filter that ORs the specified filters.default IOFileFilter
IOFileFilter.or
(IOFileFilter fileFilter) Constructs a new "or" filter with this filter.TrueFileFilter.or
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.orFileFilter
(IOFileFilter filter1, IOFileFilter filter2) Deprecated.static IOFileFilter
FileFilterUtils.prefixFileFilter
(String prefix) Returns a filter that returns true if the file name starts with the specified text.static IOFileFilter
FileFilterUtils.prefixFileFilter
(String prefix, IOCase ioCase) Returns a filter that returns true if the file name starts with the specified text.static IOFileFilter
FileFilterUtils.sizeFileFilter
(long threshold) Returns a filter that returns true if the file is bigger than a certain size.static IOFileFilter
FileFilterUtils.sizeFileFilter
(long threshold, boolean acceptLarger) Returns a filter that filters based on file size.static IOFileFilter
FileFilterUtils.sizeRangeFileFilter
(long minSizeInclusive, long maxSizeInclusive) Returns a filter that accepts files whose size is >= minimum size and <= maximum size.static IOFileFilter
FileFilterUtils.suffixFileFilter
(String suffix) Returns a filter that returns true if the file name ends with the specified text.static IOFileFilter
FileFilterUtils.suffixFileFilter
(String suffix, IOCase ioCase) Returns a filter that returns true if the file name ends with the specified text.static IOFileFilter
FileFilterUtils.trueFileFilter()
Returns a filter that always returns true.Modifier and TypeMethodDescriptionAndFileFilter.getFileFilters()
Gets this conditional file filter's list of file filters.ConditionalFileFilter.getFileFilters()
Gets this conditional file filter's list of file filters.OrFileFilter.getFileFilters()
Gets this conditional file filter's list of file filters.static List<IOFileFilter>
FileFilterUtils.toList
(IOFileFilter... filters) Create a List of file filters.Modifier and TypeMethodDescriptionvoid
AndFileFilter.addFileFilter
(IOFileFilter fileFilter) Adds the specified file filter to the list of file filters at the end of the list.void
AndFileFilter.addFileFilter
(IOFileFilter... fileFilters) Adds the given file filters.void
ConditionalFileFilter.addFileFilter
(IOFileFilter ioFileFilter) Adds the specified file filter to the list of file filters at the end of the list.void
OrFileFilter.addFileFilter
(IOFileFilter fileFilter) Adds the specified file filter to the list of file filters at the end of the list.void
OrFileFilter.addFileFilter
(IOFileFilter... fileFilters) Adds the given file filters.FalseFileFilter.and
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.and
(IOFileFilter... filters) Returns a filter that ANDs the specified filters.default IOFileFilter
IOFileFilter.and
(IOFileFilter fileFilter) Constructs a new "and" filter with this filter.TrueFileFilter.and
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.andFileFilter
(IOFileFilter filter1, IOFileFilter filter2) Deprecated.static File[]
FileFilterUtils.filter
(IOFileFilter filter, File... files) Applies anIOFileFilter
to the providedFile
objects.static File[]
FileFilterUtils.filter
(IOFileFilter filter, Iterable<File> files) Applies anIOFileFilter
to the providedFile
objects.FileFilterUtils.filterList
(IOFileFilter filter, File... files) Applies anIOFileFilter
to the providedFile
objects.FileFilterUtils.filterList
(IOFileFilter filter, Iterable<File> files) Applies anIOFileFilter
to the providedFile
objects.FileFilterUtils.filterSet
(IOFileFilter filter, File... files) Applies anIOFileFilter
to the providedFile
objects.FileFilterUtils.filterSet
(IOFileFilter filter, Iterable<File> files) Applies anIOFileFilter
to the providedFile
objects.static IOFileFilter
FileFilterUtils.makeCVSAware
(IOFileFilter filter) Decorates a filter to make it ignore CVS directories.static IOFileFilter
FileFilterUtils.makeDirectoryOnly
(IOFileFilter filter) Decorates a filter so that it only applies to directories and not to files.static IOFileFilter
FileFilterUtils.makeFileOnly
(IOFileFilter filter) Decorates a filter so that it only applies to files and not to directories.static IOFileFilter
FileFilterUtils.makeSVNAware
(IOFileFilter filter) Decorates a filter to make it ignore SVN directories.static IOFileFilter
FileFilterUtils.notFileFilter
(IOFileFilter filter) Returns a filter that NOTs the specified filter.FalseFileFilter.or
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.or
(IOFileFilter... filters) Returns a filter that ORs the specified filters.default IOFileFilter
IOFileFilter.or
(IOFileFilter fileFilter) Constructs a new "or" filter with this filter.TrueFileFilter.or
(IOFileFilter fileFilter) static IOFileFilter
FileFilterUtils.orFileFilter
(IOFileFilter filter1, IOFileFilter filter2) Deprecated.boolean
AndFileFilter.removeFileFilter
(IOFileFilter ioFileFilter) Removes the specified file filter.boolean
ConditionalFileFilter.removeFileFilter
(IOFileFilter ioFileFilter) Removes the specified file filter.boolean
OrFileFilter.removeFileFilter
(IOFileFilter fileFilter) Removes the specified file filter.static List<IOFileFilter>
FileFilterUtils.toList
(IOFileFilter... filters) Create a List of file filters.Modifier and TypeMethodDescriptionvoid
AndFileFilter.setFileFilters
(List<IOFileFilter> fileFilters) Sets the list of file filters, replacing any previously configured file filters on this filter.void
ConditionalFileFilter.setFileFilters
(List<IOFileFilter> fileFilters) Sets the list of file filters, replacing any previously configured file filters on this filter.void
OrFileFilter.setFileFilters
(List<IOFileFilter> fileFilters) Sets the list of file filters, replacing any previously configured file filters on this filter.ModifierConstructorDescriptionAndFileFilter
(IOFileFilter... fileFilters) Constructs a new instance for the give filters.AndFileFilter
(IOFileFilter filter1, IOFileFilter filter2) Constructs a new file filter that ANDs the result of other filters.NotFileFilter
(IOFileFilter filter) Constructs a new file filter that NOTs the result of another filter.OrFileFilter
(IOFileFilter... fileFilters) Constructs a new instance for the give filters.OrFileFilter
(IOFileFilter filter1, IOFileFilter filter2) Constructs a new file filter that ORs the result of other filters.ModifierConstructorDescriptionAndFileFilter
(List<IOFileFilter> fileFilters) Constructs a new instance ofAndFileFilter
with the specified list of filters.OrFileFilter
(List<IOFileFilter> fileFilters) Constructs a new instance ofOrFileFilter
with the specified filters.