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