jaugment2.helpers.config
Class StringValueParser

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

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

Parser, parsing Strings delimited by \" on both ends


Field Summary
private  char tagchar
           
 
Constructor Summary
StringValueParser()
           
 
Method Summary
 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

tagchar

private char tagchar
Constructor Detail

StringValueParser

public StringValueParser()
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