public final class WildcardFilter
extends java.lang.Object
implements java.io.FilenameFilter
Constructor and Description |
---|
WildcardFilter(java.lang.String wildcard)
constructor
|
public WildcardFilter(java.lang.String wildcard)
wildcard
- pattern of files you want e.g. some*.txt debug?.c*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 simple name of the filepublic static void main(java.lang.String[] args)
args
- wildcar, best enclosed in quotes to prevent other levels tampering with it..