org.apache.commons.io.filefilter
Class AndFileFilter
- FileFilter, FilenameFilter, ConditionalFileFilter, 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: 232900 $ $Date: 2005-08-15 23:22:30 +0100 (Mon, 15 Aug 2005) $
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