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
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
separator
private char separator
valueParsers
private java.util.Hashtable valueParsers
LinkedListValueParser
public LinkedListValueParser()
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