public final class StartsWithFilter
extends java.lang.Object
implements java.io.FilenameFilter
Constructor and Description |
---|
StartsWithFilter(java.lang.String startsWith)
constructor.
|
public StartsWithFilter(java.lang.String startsWith)
startsWith
- string file must start with. Case Insensitive.public final 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.