org.apache.commons.io.filefilter
Class NotFileFilter
- FileFilter, FilenameFilter, IOFileFilter
public class NotFileFilter
This filter produces a logical NOT of the filters specified.
$Revision: 1.6 $ $Date: 2004/02/23 04:37:57 $
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.
|
NotFileFilter
public NotFileFilter(IOFileFilter filter)
Constructs a new file filter that NOTs the result of another filters.
filter - the filter, must not be null
accept
public boolean accept(File file,
String name) Checks to see if both filters are true.
- accept in interface IOFileFilter
- accept in interface AbstractFileFilter
file - the File directoryname - the filename
- true if the filter returns false