jaugment2.helpers.config
Class LinkedListValueParser

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

public class LinkedListValueParser
extends java.lang.Object
implements ConfigFileReader.ValueParser

Parser, parsing Lists or the form { value , value , ... } where the "," are optional


Field Summary
private  char separator
           
private  java.util.Hashtable valueParsers
           
 
Constructor Summary
LinkedListValueParser()
           
 
Method Summary
 void addValueParser(ConfigFileReader.ValueParser parser)
          register a new sub-parser to parse the statement beginning with token
 char getStartchar()
          valid values must start with this char
 ConfigFileReader.Value parse(java.io.PushbackInputStream in, long linenr)
          parses a value abd returns it.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

separator

private char separator

valueParsers

private java.util.Hashtable valueParsers
Constructor Detail

LinkedListValueParser

public LinkedListValueParser()
Method Detail

parse

public ConfigFileReader.Value parse(java.io.PushbackInputStream in,
                                    long linenr)
                             throws ConfigFileReader.ParseException,
                                    java.io.IOException
parses a value abd returns it. in is advanced to the first byte after the value the charcter returned by getStartchar() must already de reat
Specified by:
parse in interface ConfigFileReader.ValueParser

getStartchar

public char getStartchar()
valid values must start with this char
Specified by:
getStartchar in interface ConfigFileReader.ValueParser

addValueParser

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