Uses of Interface
org.apache.commons.io.filefilter.IOFileFilter
Packages that use IOFileFilter
Package
Description
Provides classes for working with streams, readers, writers and files.
-
Uses of IOFileFilter in org.apache.commons.io
Methods in org.apache.commons.io with parameters of type IOFileFilterModifier 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).Constructors in org.apache.commons.io with parameters of type IOFileFilterModifierConstructorDescriptionprotectedDirectoryWalker(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 IOFileFilterModifier and TypeClassDescriptionclassAbstracts the implementation of theFileFilter(IO),FilenameFilter(IO),PathFilter(NIO) interfaces via our ownIOFileFilterinterface.classFilters files based on a cutoff time, can filter either newer files or files equal to or older.classAFileFilterproviding conditional AND logic across a list of file filters.classThis filter acceptsFiles that can be executed.classThis filter acceptsFiles that can be read.classThis filter acceptsFiles that can be written to.classThis class turns a Java FileFilter or FilenameFilter into an IO FileFilter.classThis filter acceptsFiles that are directories.classThis filter accepts files or directories that are empty.classA file filter that always returns false.classAccepts only an exactFileobject match.classThis filter acceptsFiles that are files (not directories).classThis filter acceptsFiles that are hidden.classFile filter for matching files containing a "magic number".classFilters file names for a certain name.classThis filter produces a logical NOT of the filters specified.classAFileFilterproviding conditional OR logic across a list of file filters.classAccepts only an exactPathobject match.classDelegates matching to aPathMatcher.classA file filter backed by a path visitor.classFilters file names for a certain prefix.classFilters files using supplied regular expression(s).classFilters files based on size, can filter either smaller files or files equal to or larger than a given threshold.classFilters files based on the suffix (what the file name ends with).classThis filter acceptsFiles that are symbolic links.classA file filter that always returns true.classFilters files using the supplied wildcards.classDeprecated.Use WildcardFileFilter.Fields in org.apache.commons.io.filefilter declared as IOFileFilterModifier and TypeFieldDescriptionstatic final IOFileFilterCanExecuteFileFilter.CAN_EXECUTESingleton instance of executable filterstatic final IOFileFilterCanReadFileFilter.CAN_READSingleton instance of readable filterstatic final IOFileFilterCanWriteFileFilter.CAN_WRITESingleton instance of writable filterstatic final IOFileFilterCanExecuteFileFilter.CANNOT_EXECUTESingleton instance of not executable filterstatic final IOFileFilterCanReadFileFilter.CANNOT_READSingleton instance of not readable filterstatic final IOFileFilterCanWriteFileFilter.CANNOT_WRITESingleton instance of not writable filterstatic final IOFileFilterDirectoryFileFilter.DIRECTORYSingleton instance of directory filter.static final IOFileFilterEmptyFileFilter.EMPTYSingleton instance of empty filterstatic final IOFileFilterFalseFileFilter.FALSESingleton instance of false filter.static final IOFileFilterFileFileFilter.FILEDeprecated.static final IOFileFilterHiddenFileFilter.HIDDENSingleton instance of hidden filterstatic final IOFileFilterDirectoryFileFilter.INSTANCESingleton instance of directory filter.static final IOFileFilterFalseFileFilter.INSTANCESingleton instance of false filter.static final IOFileFilterFileFileFilter.INSTANCESingleton instance of file filter.static final IOFileFilterTrueFileFilter.INSTANCESingleton instance of true filter.static final IOFileFilterEmptyFileFilter.NOT_EMPTYSingleton instance of not-empty filterstatic final IOFileFilterCanReadFileFilter.READ_ONLYSingleton instance of read-only filterstatic final IOFileFilterTrueFileFilter.TRUESingleton instance of true filter.static final IOFileFilterHiddenFileFilter.VISIBLESingleton instance of visible filterMethods in org.apache.commons.io.filefilter that return IOFileFilterModifier and TypeMethodDescriptionstatic IOFileFilterFileFilterUtils.ageFileFilter(long cutoffMillis) Returns a filter that returns true if the file was last modified before or at the specified cutoff time.static IOFileFilterFileFilterUtils.ageFileFilter(long cutoffMillis, boolean acceptOlder) Returns a filter that filters files based on a cutoff time.static IOFileFilterFileFilterUtils.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 IOFileFilterFileFilterUtils.ageFileFilter(File cutoffReference, boolean acceptOlder) Returns a filter that filters files based on a cutoff reference file.static IOFileFilterFileFilterUtils.ageFileFilter(Date cutoffDate) Returns a filter that returns true if the file was last modified before or at the specified cutoff date.static IOFileFilterFileFilterUtils.ageFileFilter(Date cutoffDate, boolean acceptOlder) Returns a filter that filters files based on a cutoff date.FalseFileFilter.and(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.and(IOFileFilter... filters) Returns a filter that ANDs the specified filters.default IOFileFilterIOFileFilter.and(IOFileFilter fileFilter) Constructs a new "and" filter with this filter.TrueFileFilter.and(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.andFileFilter(IOFileFilter filter1, IOFileFilter filter2) Deprecated.static IOFileFilterFileFilterUtils.asFileFilter(FileFilter filter) Returns anIOFileFilterthat wraps theFileFilterinstance.static IOFileFilterFileFilterUtils.asFileFilter(FilenameFilter filter) Returns anIOFileFilterthat wraps theFilenameFilterinstance.static IOFileFilterFileFilterUtils.directoryFileFilter()Returns a filter that checks if the file is a directory.static IOFileFilterFileFilterUtils.falseFileFilter()Returns a filter that always returns false.static IOFileFilterFileFilterUtils.fileFileFilter()Returns a filter that checks if the file is a file (and not a directory).static IOFileFilterFileFilterUtils.magicNumberFileFilter(byte[] magicNumber) Returns a filter that accepts files that begin with the provided magic number.static IOFileFilterFileFilterUtils.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 IOFileFilterFileFilterUtils.magicNumberFileFilter(String magicNumber) Returns a filter that accepts files that begin with the provided magic number.static IOFileFilterFileFilterUtils.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 IOFileFilterFileFilterUtils.makeCVSAware(IOFileFilter filter) Decorates a filter to make it ignore CVS directories.static IOFileFilterFileFilterUtils.makeDirectoryOnly(IOFileFilter filter) Decorates a filter so that it only applies to directories and not to files.static IOFileFilterFileFilterUtils.makeFileOnly(IOFileFilter filter) Decorates a filter so that it only applies to files and not to directories.static IOFileFilterFileFilterUtils.makeSVNAware(IOFileFilter filter) Decorates a filter to make it ignore SVN directories.static IOFileFilterFileFilterUtils.nameFileFilter(String name) Returns a filter that returns true if the file name matches the specified text.static IOFileFilterFileFilterUtils.nameFileFilter(String name, IOCase ioCase) Returns a filter that returns true if the file name matches the specified text.FalseFileFilter.negate()default IOFileFilterIOFileFilter.negate()Constructs a new "not" filter with this filter.TrueFileFilter.negate()static IOFileFilterFileFilterUtils.notFileFilter(IOFileFilter filter) Returns a filter that NOTs the specified filter.FalseFileFilter.or(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.or(IOFileFilter... filters) Returns a filter that ORs the specified filters.default IOFileFilterIOFileFilter.or(IOFileFilter fileFilter) Constructs a new "or" filter with this filter.TrueFileFilter.or(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.orFileFilter(IOFileFilter filter1, IOFileFilter filter2) Deprecated.static IOFileFilterFileFilterUtils.prefixFileFilter(String prefix) Returns a filter that returns true if the file name starts with the specified text.static IOFileFilterFileFilterUtils.prefixFileFilter(String prefix, IOCase ioCase) Returns a filter that returns true if the file name starts with the specified text.static IOFileFilterFileFilterUtils.sizeFileFilter(long threshold) Returns a filter that returns true if the file is bigger than a certain size.static IOFileFilterFileFilterUtils.sizeFileFilter(long threshold, boolean acceptLarger) Returns a filter that filters based on file size.static IOFileFilterFileFilterUtils.sizeRangeFileFilter(long minSizeInclusive, long maxSizeInclusive) Returns a filter that accepts files whose size is >= minimum size and <= maximum size.static IOFileFilterFileFilterUtils.suffixFileFilter(String suffix) Returns a filter that returns true if the file name ends with the specified text.static IOFileFilterFileFilterUtils.suffixFileFilter(String suffix, IOCase ioCase) Returns a filter that returns true if the file name ends with the specified text.static IOFileFilterFileFilterUtils.trueFileFilter()Returns a filter that always returns true.Methods in org.apache.commons.io.filefilter that return types with arguments of type IOFileFilterModifier 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.Methods in org.apache.commons.io.filefilter with parameters of type IOFileFilterModifier and TypeMethodDescriptionvoidAndFileFilter.addFileFilter(IOFileFilter fileFilter) Adds the specified file filter to the list of file filters at the end of the list.voidAndFileFilter.addFileFilter(IOFileFilter... fileFilters) Adds the given file filters.voidConditionalFileFilter.addFileFilter(IOFileFilter ioFileFilter) Adds the specified file filter to the list of file filters at the end of the list.voidOrFileFilter.addFileFilter(IOFileFilter fileFilter) Adds the specified file filter to the list of file filters at the end of the list.voidOrFileFilter.addFileFilter(IOFileFilter... fileFilters) Adds the given file filters.FalseFileFilter.and(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.and(IOFileFilter... filters) Returns a filter that ANDs the specified filters.default IOFileFilterIOFileFilter.and(IOFileFilter fileFilter) Constructs a new "and" filter with this filter.TrueFileFilter.and(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.andFileFilter(IOFileFilter filter1, IOFileFilter filter2) Deprecated.static File[]FileFilterUtils.filter(IOFileFilter filter, File... files) Applies anIOFileFilterto the providedFileobjects.static File[]FileFilterUtils.filter(IOFileFilter filter, Iterable<File> files) Applies anIOFileFilterto the providedFileobjects.FileFilterUtils.filterList(IOFileFilter filter, File... files) Applies anIOFileFilterto the providedFileobjects.FileFilterUtils.filterList(IOFileFilter filter, Iterable<File> files) Applies anIOFileFilterto the providedFileobjects.FileFilterUtils.filterSet(IOFileFilter filter, File... files) Applies anIOFileFilterto the providedFileobjects.FileFilterUtils.filterSet(IOFileFilter filter, Iterable<File> files) Applies anIOFileFilterto the providedFileobjects.static IOFileFilterFileFilterUtils.makeCVSAware(IOFileFilter filter) Decorates a filter to make it ignore CVS directories.static IOFileFilterFileFilterUtils.makeDirectoryOnly(IOFileFilter filter) Decorates a filter so that it only applies to directories and not to files.static IOFileFilterFileFilterUtils.makeFileOnly(IOFileFilter filter) Decorates a filter so that it only applies to files and not to directories.static IOFileFilterFileFilterUtils.makeSVNAware(IOFileFilter filter) Decorates a filter to make it ignore SVN directories.static IOFileFilterFileFilterUtils.notFileFilter(IOFileFilter filter) Returns a filter that NOTs the specified filter.FalseFileFilter.or(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.or(IOFileFilter... filters) Returns a filter that ORs the specified filters.default IOFileFilterIOFileFilter.or(IOFileFilter fileFilter) Constructs a new "or" filter with this filter.TrueFileFilter.or(IOFileFilter fileFilter) static IOFileFilterFileFilterUtils.orFileFilter(IOFileFilter filter1, IOFileFilter filter2) Deprecated.booleanAndFileFilter.removeFileFilter(IOFileFilter ioFileFilter) Removes the specified file filter.booleanConditionalFileFilter.removeFileFilter(IOFileFilter ioFileFilter) Removes the specified file filter.booleanOrFileFilter.removeFileFilter(IOFileFilter fileFilter) Removes the specified file filter.static 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 IOFileFilterModifier and TypeMethodDescriptionvoidAndFileFilter.setFileFilters(List<IOFileFilter> fileFilters) Sets the list of file filters, replacing any previously configured file filters on this filter.voidConditionalFileFilter.setFileFilters(List<IOFileFilter> fileFilters) Sets the list of file filters, replacing any previously configured file filters on this filter.voidOrFileFilter.setFileFilters(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 IOFileFilterModifierConstructorDescriptionAndFileFilter(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 IOFileFilterModifierConstructorDescriptionAndFileFilter(List<IOFileFilter> fileFilters) Constructs a new instance ofAndFileFilterwith the specified list of filters.OrFileFilter(List<IOFileFilter> fileFilters) Constructs a new instance ofOrFileFilterwith the specified filters.