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 bothFileFilterandFilenameFilter. -
-
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 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.Fields in org.apache.commons.io.filefilter declared as IOFileFilter Modifier and Type Field Description static IOFileFilterCanExecuteFileFilter. CAN_EXECUTESingleton instance of executable filterstatic IOFileFilterCanReadFileFilter. CAN_READSingleton instance of readable filterstatic IOFileFilterCanWriteFileFilter. CAN_WRITESingleton instance of writable filterstatic IOFileFilterCanExecuteFileFilter. CANNOT_EXECUTESingleton instance of not executable filterstatic IOFileFilterCanReadFileFilter. CANNOT_READSingleton instance of not readable filterstatic IOFileFilterCanWriteFileFilter. CANNOT_WRITESingleton instance of not writable filterstatic IOFileFilterDirectoryFileFilter. DIRECTORYSingleton instance of directory filter.static IOFileFilterEmptyFileFilter. EMPTYSingleton instance of empty filterstatic IOFileFilterFalseFileFilter. FALSESingleton instance of false filter.static IOFileFilterFileFileFilter. FILEDeprecated.static IOFileFilterHiddenFileFilter. HIDDENSingleton instance of hidden filterstatic IOFileFilterDirectoryFileFilter. INSTANCESingleton instance of directory filter.static IOFileFilterFalseFileFilter. INSTANCESingleton instance of false filter.static IOFileFilterFileFileFilter. INSTANCESingleton instance of file filter.static IOFileFilterTrueFileFilter. INSTANCESingleton instance of true filter.static IOFileFilterEmptyFileFilter. NOT_EMPTYSingleton instance of not-empty filterstatic IOFileFilterCanReadFileFilter. READ_ONLYSingleton instance of read-only filterstatic IOFileFilterTrueFileFilter. TRUESingleton instance of true filter.static IOFileFilterHiddenFileFilter. VISIBLESingleton instance of visible filterMethods in org.apache.commons.io.filefilter that return IOFileFilter Modifier and Type Method Description static IOFileFilterFileFilterUtils. ageFileFilter(long cutoff)Returns a filter that returns true if the file was last modified before or at the specified cutoff time.static IOFileFilterFileFilterUtils. ageFileFilter(long cutoff, boolean acceptOlder)Returns a filter that filters files based on a cutoff time.static IOFileFilterFileFilterUtils. 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 IOFileFilterFileFilterUtils. ageFileFilter(java.io.File cutoffReference, boolean acceptOlder)Returns a filter that filters files based on a cutoff reference file.static IOFileFilterFileFilterUtils. 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 IOFileFilterFileFilterUtils. ageFileFilter(java.util.Date cutoffDate, boolean acceptOlder)Returns a filter that filters files based on a cutoff date.IOFileFilterFalseFileFilter. and(IOFileFilter fileFilter)static IOFileFilterFileFilterUtils. and(IOFileFilter... filters)Returns a filter that ANDs the specified filters.default IOFileFilterIOFileFilter. and(IOFileFilter fileFilter)Creates a new "and" filter with this filter.IOFileFilterTrueFileFilter. and(IOFileFilter fileFilter)static IOFileFilterFileFilterUtils. andFileFilter(IOFileFilter filter1, IOFileFilter filter2)Deprecated.static IOFileFilterFileFilterUtils. asFileFilter(java.io.FileFilter filter)Returns anIOFileFilterthat wraps theFileFilterinstance.static IOFileFilterFileFilterUtils. asFileFilter(java.io.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(java.lang.String magicNumber)Returns a filter that accepts files that begin with the provided magic number.static IOFileFilterFileFilterUtils. 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 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(java.lang.String name)Returns a filter that returns true if the file name matches the specified text.static IOFileFilterFileFilterUtils. nameFileFilter(java.lang.String name, IOCase caseSensitivity)Returns a filter that returns true if the file name matches the specified text.IOFileFilterFalseFileFilter. negate()default IOFileFilterIOFileFilter. negate()Creates a new "not" filter with this filter.IOFileFilterTrueFileFilter. negate()static IOFileFilterFileFilterUtils. notFileFilter(IOFileFilter filter)Returns a filter that NOTs the specified filter.IOFileFilterFalseFileFilter. or(IOFileFilter fileFilter)static IOFileFilterFileFilterUtils. or(IOFileFilter... filters)Returns a filter that ORs the specified filters.default IOFileFilterIOFileFilter. or(IOFileFilter fileFilter)Creates a new "or" filter with this filter.IOFileFilterTrueFileFilter. or(IOFileFilter fileFilter)static IOFileFilterFileFilterUtils. orFileFilter(IOFileFilter filter1, IOFileFilter filter2)Deprecated.static IOFileFilterFileFilterUtils. prefixFileFilter(java.lang.String prefix)Returns a filter that returns true if the file name starts with the specified text.static IOFileFilterFileFilterUtils. prefixFileFilter(java.lang.String prefix, IOCase caseSensitivity)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(java.lang.String suffix)Returns a filter that returns true if the file name ends with the specified text.static IOFileFilterFileFilterUtils. suffixFileFilter(java.lang.String suffix, IOCase caseSensitivity)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 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 voidAndFileFilter. 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.IOFileFilterFalseFileFilter. and(IOFileFilter fileFilter)static IOFileFilterFileFilterUtils. and(IOFileFilter... filters)Returns a filter that ANDs the specified filters.default IOFileFilterIOFileFilter. and(IOFileFilter fileFilter)Creates a new "and" filter with this filter.IOFileFilterTrueFileFilter. and(IOFileFilter fileFilter)static IOFileFilterFileFilterUtils. andFileFilter(IOFileFilter filter1, IOFileFilter filter2)Deprecated.static java.io.File[]FileFilterUtils. filter(IOFileFilter filter, java.io.File... files)Applies anIOFileFilterto the providedFileobjects.static java.io.File[]FileFilterUtils. filter(IOFileFilter filter, java.lang.Iterable<java.io.File> files)Applies anIOFileFilterto the providedFileobjects.static java.util.List<java.io.File>FileFilterUtils. filterList(IOFileFilter filter, java.io.File... files)Applies anIOFileFilterto the providedFileobjects.static java.util.List<java.io.File>FileFilterUtils. filterList(IOFileFilter filter, java.lang.Iterable<java.io.File> files)Applies anIOFileFilterto the providedFileobjects.static java.util.Set<java.io.File>FileFilterUtils. filterSet(IOFileFilter filter, java.io.File... files)Applies anIOFileFilterto the providedFileobjects.static java.util.Set<java.io.File>FileFilterUtils. filterSet(IOFileFilter filter, java.lang.Iterable<java.io.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.IOFileFilterFalseFileFilter. or(IOFileFilter fileFilter)static IOFileFilterFileFilterUtils. or(IOFileFilter... filters)Returns a filter that ORs the specified filters.default IOFileFilterIOFileFilter. or(IOFileFilter fileFilter)Creates a new "or" filter with this filter.IOFileFilterTrueFileFilter. 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 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 voidAndFileFilter. setFileFilters(java.util.List<IOFileFilter> fileFilters)Sets the list of file filters, replacing any previously configured file filters on this filter.voidConditionalFileFilter. setFileFilters(java.util.List<IOFileFilter> fileFilters)Sets the list of file filters, replacing any previously configured file filters on this filter.voidOrFileFilter. 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 ofAndFileFilterwith the specified list of filters.OrFileFilter(java.util.List<IOFileFilter> fileFilters)Constructs a new instance ofOrFileFilterwith the specified filters.
-