|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.filter.DirListFilter
public final class DirListFilter
Filters a simple list of dirs you want. Does not work with Files, see FileListFilter.
Names filtered are directory legs, not fully qualified directories.
Field Summary | |
---|---|
static boolean |
DEBUGGING
true if debugging. |
Constructor Summary | |
---|---|
DirListFilter(boolean invert,
java.lang.String... want)
constructor |
|
DirListFilter(java.lang.String... want)
constructor |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Select only Dirs with that pass muster |
static void |
main(java.lang.String[] args)
TEST harness |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUGGING
Constructor Detail |
---|
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.Method Detail |
---|
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 file
public static void main(java.lang.String[] args)
args
- not used
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |