public final class DirListFilter
extends java.lang.Object
implements java.io.FilenameFilter
Modifier and Type | Field and Description |
---|---|
static boolean |
DEBUGGING
true if debugging.
|
(package private) boolean |
invert
do we return all directories but the ones in the list.
|
Constructor and Description |
---|
DirListFilter(boolean invert,
java.lang.String... want)
constructor
|
DirListFilter(java.lang.String... want)
constructor
|
public static final boolean DEBUGGING
final boolean invert
public DirListFilter(java.lang.String... want)
want
- Array of simple directory names without qualification. case insensitive.public DirListFilter(boolean invert, java.lang.String... want)
invert
- if true, gets you all directories except the ones in the list.want
- Array of simple directory names without qualification. case insensitive.public boolean accept(java.io.File dir, java.lang.String name)
accept
in interface java.io.FilenameFilter
dir
- the directory in which the file was found.name
- the name of the filepublic static void main(java.lang.String[] args)
args
- not used