jaugment2.helpers.config
Class SystemPropertyConfigFileParser

java.lang.Object
  |
  +--jaugment2.helpers.config.SystemPropertyConfigFileParser

public class SystemPropertyConfigFileParser
extends java.lang.Object
implements ConfigFileParser

Parser, looking for an "=" and setting the system-property named by the left part to the value designated by the value returned by the ValueParsers for the right part (delimited by newline or ";")


Field Summary
private  char equalschar
           
private  char tagchar
           
private  java.util.Hashtable valueParsers
           
 
Constructor Summary
SystemPropertyConfigFileParser()
           
 
Method Summary
 void addValueParser(ConfigFileReader.ValueParser parser)
          register a new sub-parser to parse the statement beginning with token
 long parse(java.io.PushbackInputStream in, long line)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

equalschar

private char equalschar

tagchar

private char tagchar

valueParsers

private java.util.Hashtable valueParsers
Constructor Detail

SystemPropertyConfigFileParser

public SystemPropertyConfigFileParser()
Method Detail

parse

public long parse(java.io.PushbackInputStream in,
                  long line)
           throws ConfigFileReader.ParseException,
                  java.io.IOException
Specified by:
parse in interface ConfigFileParser

addValueParser

public void addValueParser(ConfigFileReader.ValueParser parser)
register a new sub-parser to parse the statement beginning with token