jaugment2.helpers.config
Class ConfigFileReader
java.lang.Object
|
+--jaugment2.helpers.config.ConfigFileReader
- public class ConfigFileReader
- extends java.lang.Object
- implements ConfigFileParser
Helper-class for parsing the config-file.
|
Method Summary |
void |
addConfigFileParser(ConfigFileParser parser,
java.lang.String token)
register a new sub-parser to parse the statement beginning with token |
void |
parse(java.io.PushbackInputStream in)
|
long |
parse(java.io.PushbackInputStream in,
long line)
|
private long |
parsechar(java.io.PushbackInputStream in,
long line,
int nextchar,
java.lang.StringBuffer token)
|
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
toString,
wait,
wait,
wait |
tagchar
private char tagchar
subparsers
private java.util.Hashtable subparsers
ConfigFileReader
public ConfigFileReader()
parse
public void parse(java.io.PushbackInputStream in)
throws ConfigFileReader.ParseException,
java.io.IOException
parse
public long parse(java.io.PushbackInputStream in,
long line)
throws ConfigFileReader.ParseException,
java.io.IOException
- Specified by:
- parse in interface ConfigFileParser
parsechar
private long parsechar(java.io.PushbackInputStream in,
long line,
int nextchar,
java.lang.StringBuffer token)
throws ConfigFileReader.ParseException,
java.io.IOException
addConfigFileParser
public void addConfigFileParser(ConfigFileParser parser,
java.lang.String token)
- register a new sub-parser to parse the statement beginning with token