org.apache.commons.io.filefilter
Class NotFileFilter
- FileFilter, FilenameFilter, IOFileFilter
public class NotFileFilter
This filter produces a logical NOT of the filters specified.
$Revision: 155419 $ $Date: 2005-02-26 13:02:41 +0000 (Sat, 26 Feb 2005) $
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