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