public class GMFFFolder
extends java.lang.Object
Constructor and Description |
---|
GMFFFolder(java.io.File filePath,
java.lang.String folderName,
java.lang.String exportType)
Constructor for GMFFFolder using pathname String.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAbsolutePath()
Returns the absolute pathname of the GMFFFolder.
|
java.io.File |
getFolderFile()
Returns the File object for the GMFFFolder.
|
java.io.File[] |
listFiles(java.lang.String fileType,
java.lang.String lowestNamePrefix)
Returns a name-sorted array listing the files in the directory which
match the input fileType and have a name greater than or equal to the
input lowestNamePrefix.
|
public GMFFFolder(java.io.File filePath, java.lang.String folderName, java.lang.String exportType) throws GMFFException
The input folderName
String may be an absolute or relative path
name. If it is null or an empty string, does not exist, is not a
directory, or is security protected, then an exception is thrown.
filePath
- path name for building folder. May be null, relative or
absolute.folderName
- relative or absolute path nameexportType
- Export Type parm related to this folder for use in
error messages.GMFFException
- if folderName not found, not a readable directory,
security protected, or just plain invalid.public java.io.File[] listFiles(java.lang.String fileType, java.lang.String lowestNamePrefix) throws GMFFException
NOTE: "fileNamePrefix" refers to the file name without the dotted file type (e.g. "help.txt" has file name prefix = "help".)
fileType
- dot followed by file suffix (e.g. ".mmp"). Selected files
must have matching file suffix.lowestNamePrefix
- Selected files must have names >=
lowestNamePrefix, ignoring case.GMFFException
- is security exception.public java.io.File getFolderFile()
public java.lang.String getAbsolutePath()