public class NotFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter
NotFilenameFilter filter = new NotFilenameFilter (new RegexFilenameFilter ("^[Aa]", FileFilterMatchType.NAME));
FilenameFilter
,
AndFilenameFilter
,
OrFilenameFilter
Constructor and Description |
---|
NotFilenameFilter(java.io.FilenameFilter filter)
Create a new NotFilenameFilter that wraps the
specified
FilenameFilter . |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Tests whether a file should be included in a file list.
|
public NotFilenameFilter(java.io.FilenameFilter filter)
FilenameFilter
.filter
- The FilenameFilter
to wrap.public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- The directory containing the file.name
- the file name