public class GMFFFileFilter
extends java.lang.Object
implements java.io.FileFilter
It is used by GMFFFolder but is called by Java via the File method listFiles(fileFilter). call.
Constructor and Description |
---|
GMFFFileFilter(java.lang.String fileSuffix,
java.lang.String lowestNamePrefix)
GMFF Constructor for GMFFFileFilter allowing specification of selection
criteria for files in a directory.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File pathname)
FileFilter for MMT Folders.
|
public GMFFFileFilter(java.lang.String fileSuffix, java.lang.String lowestNamePrefix)
fileSuffix
- dot followed by file type (e.g. ".mmp"). Selected files
must have matching file suffix.lowestNamePrefix
- Selected files must have names >=
lowestNamePrefix, ignoring case.public boolean accept(java.io.File pathname)
Return true if:
(namePrefix.compareToIgnoreCase( lowestNamePrefix) >= 0)
accept
in interface java.io.FileFilter
pathname
- entry in directory.