|
||||||||||
| 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.NotFileFilter
public class NotFileFilter
This filter produces a logical NOT of the filters specified.
FileFilterUtils.notFileFilter(IOFileFilter),
Serialized Form| Constructor Summary | |
|---|---|
NotFileFilter(IOFileFilter filter)
Constructs a new file filter that NOTs the result of another filter. |
|
| Method Summary | |
|---|---|
boolean |
accept(File file)
Returns the logical NOT of the underlying filter's return value for the same File. |
boolean |
accept(File file,
String name)
Returns the logical NOT of the underlying filter's return value for the same arguments. |
String |
toString()
Provide a String representaion of this file filter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public NotFileFilter(IOFileFilter filter)
filter - the filter, must not be null
IllegalArgumentException - if the filter is null| Method Detail |
|---|
public boolean accept(File file)
accept in interface FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to check
public boolean accept(File file,
String name)
accept in interface FilenameFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File directoryname - the filename
public String toString()
toString in class AbstractFileFilter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||