org.apache.commons.io.filefilter
Class AndFileFilter
- ConditionalFileFilter, FileFilter, FilenameFilter, Serializable, IOFileFilter
public class AndFileFilter
A java.io.FileFilter providing conditional AND logic across a list of
file filters. This filter returns true if all filters in the
list return true. Otherwise, it returns false.
Checking of the file filter list stops when the first filter returns
false.
$Revision: 606381 $ $Date: 2007-12-22 02:03:16 +0000 (Sat, 22 Dec 2007) $
fileFilters
private List fileFilters
The list of file filters.
AndFileFilter
public AndFileFilter()
Constructs a new instance of AndFileFilter.
AndFileFilter
public AndFileFilter(List fileFilters)
Constructs a new instance of AndFileFilter
with the specified list of filters.
fileFilters - a List of IOFileFilter instances, copied, null ignored
AndFileFilter
public AndFileFilter(IOFileFilter filter1,
IOFileFilter filter2) Constructs a new file filter that ANDs the result of two other filters.
filter1 - the first filter, must not be nullfilter2 - the second filter, must not be null
Copyright (c) 2002-2010 Apache Software Foundation