class SubmitDirectoryFilenameFilter
extends java.lang.Object
implements java.io.FilenameFilter
Modifier and Type | Field and Description |
---|---|
private java.util.regex.Pattern |
mPattern
Stores compiled patterns at first use, quasi-Singleton.
|
private java.lang.String |
mRegexExpression
Store the regular expressions necessary to parse kickstart output files
|
Constructor and Description |
---|
SubmitDirectoryFilenameFilter(java.lang.String prefix)
Overloaded constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(java.io.File dir,
java.lang.String name)
Tests if a specified file should be included in a file list.
|
private java.lang.String mRegexExpression
private java.util.regex.Pattern mPattern
public SubmitDirectoryFilenameFilter(java.lang.String prefix)
prefix
- prefix for the submit directorypublic 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.