org.apache.commons.io.filefilter
Class OrFileFilter
- FileFilter, FilenameFilter, IOFileFilter
public class OrFileFilter
This filter produces a logical OR of the two filters specified.
$Revision: 1.8 $ $Date: 2004/02/23 04:37:57 $
boolean | accept(File file)- Checks to see if either filter is true.
|
boolean | accept(File file, String name)- Checks to see if either filter is true.
|
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
accept
public boolean accept(File file,
String name) Checks to see if either filter is true.
- accept in interface IOFileFilter
- accept in interface AbstractFileFilter
file - the File directoryname - the filename
- true if either filter is true