public final class EndsWithFilter
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 |
---|
EndsWithFilter(boolean invert,
java.lang.String endsWith)
constructor
|
EndsWithFilter(java.lang.String endsWith)
constructor
|
public EndsWithFilter(java.lang.String endsWith)
endsWith
- string file must end with. Case Insensitive.public EndsWithFilter(boolean invert, java.lang.String endsWith)
invert
- if true, selects files not in the list instead.endsWith
- string file must end with. 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 file.public static void main(java.lang.String[] args)
args
- not used.