|
|||||||||
| 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.
| Field Summary | |
|---|---|
private IOFileFilter |
filter
The filter |
| 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. |
java.lang.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 |
| Field Detail |
|---|
private final IOFileFilter filter
| Constructor Detail |
|---|
public NotFileFilter(IOFileFilter filter)
filter - the filter, must not be null
java.lang.IllegalArgumentException - if the filter is null| Method Detail |
|---|
public boolean accept(java.io.File file)
accept in interface java.io.FileFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File to check
public boolean accept(java.io.File file,
java.lang.String name)
accept in interface java.io.FilenameFilteraccept in interface IOFileFilteraccept in class AbstractFileFilterfile - the File directoryname - the filename
public java.lang.String toString()
toString in class AbstractFileFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||