|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.commons.io.filefilter.AbstractFileFilter
org.apache.commons.io.filefilter.OrFileFilter
This filter produces a logical OR of the two filters specified.
| Constructor Summary | |
OrFileFilter(IOFileFilter filter1,
IOFileFilter filter2)
Constructs a new file filter that ORs the result of two other filters. |
|
| Method Summary | |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public OrFileFilter(IOFileFilter filter1,
IOFileFilter filter2)
filter1 - the first filter, must not be nullfilter2 - the second filter, must not be null
IllegalArgumentException - if either filter is null| Method Detail |
public boolean accept(File file)
accept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to check
public boolean accept(File file,
String name)
accept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File directoryname - the filename
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||