org.apache.commons.io.filefilter
Class OrFileFilter
- ConditionalFileFilter, FileFilter, FilenameFilter, Serializable, 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: 606381 $ $Date: 2007-12-22 02:03:16 +0000 (Sat, 22 Dec 2007) $
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
Copyright (c) 2002-2010 Apache Software Foundation