public class BINARY extends java.lang.Object implements PlugableDataParserInterface
PlugableDataParserInterface.init(String, String, LineNumberReader)
and PlugableDataParserInterface.getFile(String, Hashtable)
are implemented. This
object tries to load the file given in the command line of the IL File and then puts
several pieces of information about that file into the constants Hashtable for use in rules.Constructor and Description |
---|
BINARY() |
Modifier and Type | Method and Description |
---|---|
SubmatData |
getData(int nrOfLines,
java.lang.String mode,
java.lang.String meaName,
java.util.Hashtable constants)
Not implemented here.
|
SubmatData |
getFile(java.lang.String mode,
java.util.Hashtable constants)
Puts the file's information in the constants Table. the method returns a blank
SubMatData Object.
|
void |
init(java.lang.String pathName,
java.lang.String fileName,
java.io.LineNumberReader icf)
Initializes the Parser.
|
java.lang.String |
preprocessFile(java.lang.String mode,
java.lang.String meaGroupName,
ResultDirHandlerInterface resultDirHandler,
java.util.Hashtable constants) |
public SubmatData getData(int nrOfLines, java.lang.String mode, java.lang.String meaName, java.util.Hashtable constants)
getData
in interface PlugableDataParserInterface
nrOfLines
- Number of lines to readmode
- "A"ppend or "R"eplacemeaName
- Name of Measurement the data belongs topublic SubmatData getFile(java.lang.String mode, java.util.Hashtable constants)
getFile
in interface PlugableDataParserInterface
mode
- Either "A" for Append or "R" for replace. Append is NOT supported.constants
- the Hashtable
with all the constantsSubmatData
. Clients should not use this object to gather informationpublic void init(java.lang.String pathName, java.lang.String fileName, java.io.LineNumberReader icf)
init
in interface PlugableDataParserInterface
pathName
- The Path to the import directoryfileName
- The name of the binary file.icf
- The LineNumberReader of the Data Object. Can be ignored in this implementationpublic java.lang.String preprocessFile(java.lang.String mode, java.lang.String meaGroupName, ResultDirHandlerInterface resultDirHandler, java.util.Hashtable constants)
preprocessFile
in interface PlugableDataParserInterface