org.apache.commons.io.filefilter
Class OrFileFilter
- ConditionalFileFilter, FileFilter, FilenameFilter, 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: 490425 $ $Date: 2006-12-27 02:25:43 +0100 (Mi, 27 Dez 2006) $
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