|
||||||||||
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
public class 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(java.io.File file)
Checks to see if both filters are true. |
boolean |
accept(java.io.File file,
java.lang.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
java.lang.IllegalArgumentException
- if the filter is nullMethod Detail |
---|
public boolean accept(java.io.File file)
accept
in interface java.io.FileFilter
accept
in interface IOFileFilter
accept
in class AbstractFileFilter
file
- the File to check
public boolean accept(java.io.File file, java.lang.String name)
accept
in interface java.io.FilenameFilter
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 |