Uses of Interface
org.apache.commons.io.filefilter.IOFileFilter

Packages that use IOFileFilter
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 both FileFilter and FilenameFilter
 

Uses of IOFileFilter in org.apache.commons.io
 

Methods in org.apache.commons.io with parameters of type IOFileFilter
static Collection FileUtils.listFiles(File directory, IOFileFilter fileFilter, IOFileFilter dirFilter)
          Finds files within a given directory (and optionally its subdirectories).
static Iterator FileUtils.iterateFiles(File directory, IOFileFilter fileFilter, IOFileFilter dirFilter)
          Allows iteration over the files in given directory (and optionally its subdirectories).
 

Uses of IOFileFilter in org.apache.commons.io.filefilter
 

Classes in org.apache.commons.io.filefilter that implement IOFileFilter
 class AbstractFileFilter
          An abstract class which implements the Java FileFilter and FilenameFilter interfaces via the IOFileFilter interface.
 class AgeFileFilter
          Filters files based on a cutoff time, can filter either older or newer files.
 class AndFileFilter
          A FileFilter providing conditional AND logic across a list of file filters.
 class DelegateFileFilter
          This class turns a Java FileFilter or FilenameFilter into an IO FileFilter.
 class DirectoryFileFilter
          This filter accepts Files that are directories.
 class FalseFileFilter
          A file filter that always returns false.
 class NameFileFilter
          Filters filenames for a certain name.
 class NotFileFilter
          This filter produces a logical NOT of the filters specified.
 class OrFileFilter
          A FileFilter providing conditional OR logic across a list of file filters.
 class PrefixFileFilter
          Filters filenames for a certain prefix.
 class SizeFileFilter
          Filters files based on size, can filter either larger or smaller files as compared to a given threshold.
 class SuffixFileFilter
          Filters files based on the suffix (what the filename ends with).
 class TrueFileFilter
          A file filter that always returns true.
 class WildcardFilter
          Filters files using supplied wildcard(s).
 

Fields in org.apache.commons.io.filefilter declared as IOFileFilter
static IOFileFilter TrueFileFilter.INSTANCE
          Singleton instance of true filter
static IOFileFilter FalseFileFilter.INSTANCE
          Singleton instance of false filter
static IOFileFilter DirectoryFileFilter.INSTANCE
          Singleton instance of directory filter
 

Methods in org.apache.commons.io.filefilter that return IOFileFilter
static IOFileFilter FileFilterUtils.prefixFileFilter(String prefix)
          Returns a filter that returns true if the filename starts with the specified text.
static IOFileFilter FileFilterUtils.suffixFileFilter(String suffix)
          Returns a filter that returns true if the filename ends with the specified text.
static IOFileFilter FileFilterUtils.nameFileFilter(String name)
          Returns a filter that returns true if the filename matches the specified text.
static IOFileFilter FileFilterUtils.directoryFileFilter()
          Returns a filter that checks if the file is a directory.
static IOFileFilter FileFilterUtils.andFileFilter(IOFileFilter filter1, IOFileFilter filter2)
          Returns a filter that ANDs the two specified filters.
static IOFileFilter FileFilterUtils.orFileFilter(IOFileFilter filter1, IOFileFilter filter2)
          Returns a filter that ORs the two specified filters.
static IOFileFilter FileFilterUtils.notFileFilter(IOFileFilter filter)
          Returns a filter that NOTs the specified filter.
static IOFileFilter FileFilterUtils.trueFileFilter()
          Returns a filter that always returns true.
static IOFileFilter FileFilterUtils.falseFileFilter()
          Returns a filter that always returns false.
static IOFileFilter FileFilterUtils.asFileFilter(FileFilter filter)
          Returns an IOFileFilter that wraps the FileFilter instance.
static IOFileFilter FileFilterUtils.asFileFilter(FilenameFilter filter)
          Returns an IOFileFilter that wraps the FilenameFilter instance.
static IOFileFilter FileFilterUtils.makeCVSAware(IOFileFilter filter)
          Returns an IOFileFilter that ignores CVS directories.
static IOFileFilter FileFilterUtils.makeSVNAware(IOFileFilter filter)
          Returns an IOFileFilter that ignores SVN directories.
static IOFileFilter FileFilterUtils.ageFileFilter(long cutoff)
          Returns a filter that returns true if the file was last modified after 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(Date cutoffDate)
          Returns a filter that returns true if the file was last modified after the specified cutoff date.
static IOFileFilter FileFilterUtils.ageFileFilter(Date cutoffDate, boolean acceptOlder)
          Returns a filter that filters files based on a cutoff date.
static IOFileFilter FileFilterUtils.ageFileFilter(File cutoffReference)
          Returns a filter that returns true if the file was last modified after 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.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.
 

Methods in org.apache.commons.io.filefilter with parameters of type IOFileFilter
 void OrFileFilter.addFileFilter(IOFileFilter ioFileFilter)
          Adds the specified file filter to the list of file filters at the end of the list.
 boolean OrFileFilter.removeFileFilter(IOFileFilter ioFileFilter)
          Removes the specified file filter.
static IOFileFilter FileFilterUtils.andFileFilter(IOFileFilter filter1, IOFileFilter filter2)
          Returns a filter that ANDs the two specified filters.
static IOFileFilter FileFilterUtils.orFileFilter(IOFileFilter filter1, IOFileFilter filter2)
          Returns a filter that ORs the two specified filters.
static IOFileFilter FileFilterUtils.notFileFilter(IOFileFilter filter)
          Returns a filter that NOTs the specified filter.
static IOFileFilter FileFilterUtils.makeCVSAware(IOFileFilter filter)
          Returns an IOFileFilter that ignores CVS directories.
static IOFileFilter FileFilterUtils.makeSVNAware(IOFileFilter filter)
          Returns an IOFileFilter that ignores SVN directories.
 void ConditionalFileFilter.addFileFilter(IOFileFilter ioFileFilter)
          Adds the specified file filter to the list of file filters at the end of the list.
 boolean ConditionalFileFilter.removeFileFilter(IOFileFilter ioFileFilter)
          Removes the specified file filter.
 void AndFileFilter.addFileFilter(IOFileFilter ioFileFilter)
          Adds the specified file filter to the list of file filters at the end of the list.
 boolean AndFileFilter.removeFileFilter(IOFileFilter ioFileFilter)
          Removes the specified file filter.
 

Constructors in org.apache.commons.io.filefilter with parameters of type IOFileFilter
OrFileFilter(IOFileFilter filter1, IOFileFilter filter2)
          Constructs a new file filter that ORs the result of two other filters.
NotFileFilter(IOFileFilter filter)
          Constructs a new file filter that NOTs the result of another filters.
AndFileFilter(IOFileFilter filter1, IOFileFilter filter2)
          Constructs a new file filter that ANDs the result of two other filters.
 



Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.