com.isti.trinetwatch.collectionAgentSim
Class CollectIniParser

java.lang.Object
  extended by com.isti.util.CfgFileParser
      extended by com.isti.trinetwatch.collectionAgentSim.CollectIniParser

public class CollectIniParser
extends CfgFileParser

This Class is used to parse the collectStations.ini file for stations data.


Field Summary
 
Fields inherited from class com.isti.util.CfgFileParser
CLOSE_BRACKET_CHAR, commaSepFlag, errorMessage, inTokens, OPEN_BRACKET_CHAR, wordSlashFlag
 
Constructor Summary
CollectIniParser(java.io.Reader rdr)
          Create a new object of type CollectIniParser.
 
Method Summary
 boolean parseStream(StationTable stationsTable)
          Parses the given input stream as a station information file.
 
Methods inherited from class com.isti.util.CfgFileParser
getErrorMessage, parseEqualsNumber, parseEqualsString, resetInput, setDupFieldMsg, setIllegalCharMsg, setNoCloseBracketMsg, setNoOpenBracketMsg, setUnexpectedEOFMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectIniParser

public CollectIniParser(java.io.Reader rdr)
Create a new object of type CollectIniParser.

Parameters:
rdr - An object of type Reader. It is the file that is to be read in.
Method Detail

parseStream

public boolean parseStream(StationTable stationsTable)
Parses the given input stream as a station information file.

Parameters:
typeTable - The object in which the different station types are stored.
stationsTable - StationTable object to be filled in.
Returns:
true if successful, false if parameter or syntax error detected.