Uses of Interface
org.apache.commons.io.filefilter.IOFileFilter
-
Packages that use IOFileFilter Package Description org.apache.commons.io This package defines utility classes for working with streams, readers, writers and files.org.apache.commons.io.filefilter This package defines an interface (IOFileFilter) that combines bothFileFilter
andFilenameFilter
. -
-
Uses of IOFileFilter in org.apache.commons.io
Methods in org.apache.commons.io with parameters of type IOFileFilter Modifier and Type Method Description static java.util.Iterator<java.io.File>
FileUtils. iterateFiles(java.io.File directory, IOFileFilter fileFilter, IOFileFilter dirFilter)
Iterates over the files in given directory (and optionally its subdirectories).static java.util.Iterator<java.io.File>
FileUtils. iterateFilesAndDirs(java.io.File directory, IOFileFilter fileFilter, IOFileFilter dirFilter)
Iterates over the files in given directory (and optionally its subdirectories).static java.util.Collection<java.io.File>
FileUtils. listFiles(java.io.File directory, IOFileFilter fileFilter, IOFileFilter dirFilter)
Finds files within a given directory (and optionally its subdirectories).static java.util.Collection<java.io.File>
FileUtils. listFilesAndDirs(java.io.File directory, IOFileFilter fileFilter, IOFileFilter dirFilter)
Finds files within a given directory (and optionally its subdirectories).Constructors in org.apache.commons.io with parameters of type IOFileFilter Constructor Description 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
Classes in org.apache.commons.io.filefilter that implement IOFileFilter Modifier and Type Class Description class
AbstractFileFilter
Abstracts the implementation of theFileFilter
(IO),FilenameFilter
(IO),PathFilter
(NIO) interfaces via our ownIOFileFilter
interface.class
AgeFileFilter
Filters files based on a cutoff time, can filter either newer files or files equal to or older.class
AndFileFilter
AFileFilter
providing conditional AND logic across a list of file filters.class
CanExecuteFileFilter
This filter acceptsFile
s that can be executed.class
CanReadFileFilter
This filter acceptsFile
s that can be read.class
CanWriteFileFilter
This filter acceptsFile
s that can be written to.class
DelegateFileFilter
This class turns a Java FileFilter or FilenameFilter into an IO FileFilter.class
DirectoryFileFilter
This filter acceptsFile
s that are directories.class
EmptyFileFilter
This filter accepts files or directories that are empty.class
FalseFileFilter
A file filter that always returns false.class
FileEqualsFileFilter
Accepts only an exactFile
object match.class
FileFileFilter
This filter acceptsFile
s that are files (not directories).class
HiddenFileFilter
This filter acceptsFile
s that are hidden.class
MagicNumberFileFilter
File filter for matching files containing a "magic number".class
NameFileFilter
Filters file names for a certain name.class
NotFileFilter
This filter produces a logical NOT of the filters specified.class
OrFileFilter
AFileFilter
providing conditional OR logic across a list of file filters.class
PathEqualsFileFilter
Accepts only an exactPath
object match.class
PathVisitorFileFilter
A file filter backed by a path visitor.class
PrefixFileFilter
Filters file names for a certain prefix.class
RegexFileFilter
Filters files using supplied regular expression(s).class
SizeFileFilter
Filters files based on size, can filter either smaller files or files equal to or larger than a given threshold.class
SuffixFileFilter
Filters files based on the suffix (what the file name ends with).class
SymbolicLinkFileFilter
This filter acceptsFile
s that are symbolic links.class
TrueFileFilter
A file filter that always returns true.class
WildcardFileFilter
Filters files using the supplied wildcards.class
WildcardFilter
Deprecated.Use WildcardFileFilter.Fields in org.apache.commons.io.filefilter declared as IOFileFilter Modifier and Type Field Description static IOFileFilter
CanExecuteFileFilter. CAN_EXECUTE
Singleton instance of executable filterstatic IOFileFilter
CanReadFileFilter. CAN_READ
Singleton instance of readable filterstatic IOFileFilter
CanWriteFileFilter. CAN_WRITE
Singleton instance of writable filterstatic IOFileFilter
CanExecuteFileFilter. CANNOT_EXECUTE
Singleton instance of not executable filterstatic IOFileFilter
CanReadFileFilter. CANNOT_READ
Singleton instance of not readable filterstatic IOFileFilter
CanWriteFileFilter. CANNOT_WRITE
Singleton instance of not writable filterstatic IOFileFilter
DirectoryFileFilter. DIRECTORY
Singleton instance of directory filter.static IOFileFilter
EmptyFileFilter. EMPTY
Singleton instance of empty filterstatic IOFileFilter
FalseFileFilter. FALSE
Singleton instance of false filter.static IOFileFilter
FileFileFilter. FILE
Deprecated.static IOFileFilter
HiddenFileFilter. HIDDEN
Singleton instance of hidden filterstatic IOFileFilter
DirectoryFileFilter. INSTANCE
Singleton instance of directory filter.static IOFileFilter
FalseFileFilter. INSTANCE
Singleton instance of false filter.static IOFileFilter
FileFileFilter. INSTANCE
Singleton instance of file filter.static IOFileFilter
TrueFileFilter. INSTANCE
Singleton instance of true filter.static IOFileFilter
EmptyFileFilter. NOT_EMPTY
Singleton instance of not-empty filterstatic IOFileFilter
CanReadFileFilter. READ_ONLY
Singleton instance of read-only filterstatic IOFileFilter
TrueFileFilter. TRUE
Singleton instance of true filter.static IOFileFilter
HiddenFileFilter. VISIBLE
Singleton instance of visible filterMethods in org.apache.commons.io.filefilter that return IOFileFilter Modifier and Type Method Description static IOFileFilter
FileFilterUtils. ageFileFilter(long cutoff)
Returns a filter that returns true if the file was last modified before or at the specified cutoff time.static IOFileFilter
FileFilterUtils. ageFileFilter(long cutoff, boolean acceptOlder)
Returns a filter that filters files based on a cutoff time.static IOFileFilter
FileFilterUtils. ageFileFilter(java.io.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(java.io.File cutoffReference, boolean acceptOlder)
Returns a filter that filters files based on a cutoff reference file.static IOFileFilter
FileFilterUtils. ageFileFilter(java.util.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(java.util.Date cutoffDate, boolean acceptOlder)
Returns a filter that filters files based on a cutoff date.IOFileFilter
FalseFileFilter. and(IOFileFilter fileFilter)
static IOFileFilter
FileFilterUtils. and(IOFileFilter... filters)
Returns a filter that ANDs the specified filters.default IOFileFilter
IOFileFilter. and(IOFileFilter fileFilter)
Creates a new "and" filter with this filter.IOFileFilter
TrueFileFilter. and(IOFileFilter fileFilter)
static IOFileFilter
FileFilterUtils. andFileFilter(IOFileFilter filter1, IOFileFilter filter2)
Deprecated.static IOFileFilter
FileFilterUtils. asFileFilter(java.io.FileFilter filter)
Returns anIOFileFilter
that wraps theFileFilter
instance.static IOFileFilter
FileFilterUtils. asFileFilter(java.io.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(java.lang.String magicNumber)
Returns a filter that accepts files that begin with the provided magic number.static IOFileFilter
FileFilterUtils. magicNumberFileFilter(java.lang.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(java.lang.String name)
Returns a filter that returns true if the file name matches the specified text.static IOFileFilter
FileFilterUtils. nameFileFilter(java.lang.String name, IOCase caseSensitivity)
Returns a filter that returns true if the file name matches the specified text.IOFileFilter
FalseFileFilter. negate()
default IOFileFilter
IOFileFilter. negate()
Creates a new "not" filter with this filter.IOFileFilter
TrueFileFilter. negate()
static IOFileFilter
FileFilterUtils. notFileFilter(IOFileFilter filter)
Returns a filter that NOTs the specified filter.IOFileFilter
FalseFileFilter. or(IOFileFilter fileFilter)
static IOFileFilter
FileFilterUtils. or(IOFileFilter... filters)
Returns a filter that ORs the specified filters.default IOFileFilter
IOFileFilter. or(IOFileFilter fileFilter)
Creates a new "or" filter with this filter.IOFileFilter
TrueFileFilter. or(IOFileFilter fileFilter)
static IOFileFilter
FileFilterUtils. orFileFilter(IOFileFilter filter1, IOFileFilter filter2)
Deprecated.static IOFileFilter
FileFilterUtils. prefixFileFilter(java.lang.String prefix)
Returns a filter that returns true if the file name starts with the specified text.static IOFileFilter
FileFilterUtils. prefixFileFilter(java.lang.String prefix, IOCase caseSensitivity)
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(java.lang.String suffix)
Returns a filter that returns true if the file name ends with the specified text.static IOFileFilter
FileFilterUtils. suffixFileFilter(java.lang.String suffix, IOCase caseSensitivity)
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.Methods in org.apache.commons.io.filefilter that return types with arguments of type IOFileFilter Modifier and Type Method Description java.util.List<IOFileFilter>
AndFileFilter. getFileFilters()
Gets this conditional file filter's list of file filters.java.util.List<IOFileFilter>
ConditionalFileFilter. getFileFilters()
Gets this conditional file filter's list of file filters.java.util.List<IOFileFilter>
OrFileFilter. getFileFilters()
Gets this conditional file filter's list of file filters.static java.util.List<IOFileFilter>
FileFilterUtils. toList(IOFileFilter... filters)
Create a List of file filters.Methods in org.apache.commons.io.filefilter with parameters of type IOFileFilter Modifier and Type Method Description void
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.IOFileFilter
FalseFileFilter. and(IOFileFilter fileFilter)
static IOFileFilter
FileFilterUtils. and(IOFileFilter... filters)
Returns a filter that ANDs the specified filters.default IOFileFilter
IOFileFilter. and(IOFileFilter fileFilter)
Creates a new "and" filter with this filter.IOFileFilter
TrueFileFilter. and(IOFileFilter fileFilter)
static IOFileFilter
FileFilterUtils. andFileFilter(IOFileFilter filter1, IOFileFilter filter2)
Deprecated.static java.io.File[]
FileFilterUtils. filter(IOFileFilter filter, java.io.File... files)
Applies anIOFileFilter
to the providedFile
objects.static java.io.File[]
FileFilterUtils. filter(IOFileFilter filter, java.lang.Iterable<java.io.File> files)
Applies anIOFileFilter
to the providedFile
objects.static java.util.List<java.io.File>
FileFilterUtils. filterList(IOFileFilter filter, java.io.File... files)
Applies anIOFileFilter
to the providedFile
objects.static java.util.List<java.io.File>
FileFilterUtils. filterList(IOFileFilter filter, java.lang.Iterable<java.io.File> files)
Applies anIOFileFilter
to the providedFile
objects.static java.util.Set<java.io.File>
FileFilterUtils. filterSet(IOFileFilter filter, java.io.File... files)
Applies anIOFileFilter
to the providedFile
objects.static java.util.Set<java.io.File>
FileFilterUtils. filterSet(IOFileFilter filter, java.lang.Iterable<java.io.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.IOFileFilter
FalseFileFilter. or(IOFileFilter fileFilter)
static IOFileFilter
FileFilterUtils. or(IOFileFilter... filters)
Returns a filter that ORs the specified filters.default IOFileFilter
IOFileFilter. or(IOFileFilter fileFilter)
Creates a new "or" filter with this filter.IOFileFilter
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 java.util.List<IOFileFilter>
FileFilterUtils. toList(IOFileFilter... filters)
Create a List of file filters.Method parameters in org.apache.commons.io.filefilter with type arguments of type IOFileFilter Modifier and Type Method Description void
AndFileFilter. setFileFilters(java.util.List<IOFileFilter> fileFilters)
Sets the list of file filters, replacing any previously configured file filters on this filter.void
ConditionalFileFilter. setFileFilters(java.util.List<IOFileFilter> fileFilters)
Sets the list of file filters, replacing any previously configured file filters on this filter.void
OrFileFilter. setFileFilters(java.util.List<IOFileFilter> fileFilters)
Sets the list of file filters, replacing any previously configured file filters on this filter.Constructors in org.apache.commons.io.filefilter with parameters of type IOFileFilter Constructor Description AndFileFilter(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.Constructor parameters in org.apache.commons.io.filefilter with type arguments of type IOFileFilter Constructor Description AndFileFilter(java.util.List<IOFileFilter> fileFilters)
Constructs a new instance ofAndFileFilter
with the specified list of filters.OrFileFilter(java.util.List<IOFileFilter> fileFilters)
Constructs a new instance ofOrFileFilter
with the specified filters.
-