org.apache.commons.io.filefilter
Class OrFileFilter
- FileFilter, FilenameFilter, ConditionalFileFilter, IOFileFilter
public class OrFileFilter
A java.io.FileFilter
providing conditional OR logic across a list of
file filters. This filter returns true
if any filters in the
list return true
. Otherwise, it returns false
.
Checking of the file filter list stops when the first filter returns
true
.
$Revision: 232900 $ $Date: 2005-08-15 23:22:30 +0100 (Mon, 15 Aug 2005) $
fileFilters
private List fileFilters
The list of file filters.
OrFileFilter
public OrFileFilter()
Constructs a new instance of OrFileFilter
.
OrFileFilter
public OrFileFilter(List fileFilters)
Constructs a new instance of OrFileFilter
with the specified filters.
fileFilters
- the file filters for this filter, copied, null ignored
OrFileFilter
public OrFileFilter(IOFileFilter filter1,
IOFileFilter filter2)
Constructs a new file filter that ORs the result of two other filters.
filter1
- the first filter, must not be nullfilter2
- the second filter, must not be null