|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.filter.FileListFilter
public final class FileListFilter
Selects files that match one of a list of filenames.
You provide an array of specific filenames that you want. Does not work with Directories. See DirListFilter.
Field Summary | |
---|---|
static boolean |
DEBUGGING
true if debugging. |
Constructor Summary | |
---|---|
FileListFilter(boolean invert,
java.lang.String... want)
constructor |
|
FileListFilter(java.lang.String... want)
constructor |
Method Summary | |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Select only files 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 FileListFilter(java.lang.String... want)
want
- Array of filenames without directory names you want. No wildcards. when old Javas die we will convert
this to String...public FileListFilter(boolean invert, java.lang.String... want)
invert
- if true, selects files not in the list instead.want
- Array of filenames without directory names you want. No wildcards. when old Javas die we will convert
this to String...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 |