org.apache.commons.io.filefilter
Class NotFileFilter
- FileFilter, FilenameFilter, Serializable, IOFileFilter
public class NotFileFilter
implements Serializable
This filter produces a logical NOT of the filters specified.
$Revision: 591058 $ $Date: 2007-11-01 15:47:05 +0000 (Thu, 01 Nov 2007) $
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.
|
String | toString()- Provide a String representaion of this file filter.
|
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
Copyright (c) 2002-2010 Apache Software Foundation