public final class FileListFilter
extends java.lang.Object
implements java.io.FilenameFilter
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
invert
do we return all directories but the ones in the list.
|
Constructor and Description |
---|
FileListFilter(boolean invert,
java.lang.String... want)
constructor
|
FileListFilter(java.lang.String... want)
constructor
|
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...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