org.apache.commons.configuration.plist
Class PropertyListParser
java.lang.Object
org.apache.commons.configuration.plist.PropertyListParser
- All Implemented Interfaces:
- PropertyListParserConstants
class PropertyListParser
- extends java.lang.Object
- implements PropertyListParserConstants
JavaCC based parser for the PropertyList format.
- Version:
- $Revision: 348244 $, $Date: 2005-11-22 21:40:57 +0100 (Di, 22 Nov 2005) $
- Author:
- Emmanuel Bourg
Fields inherited from interface org.apache.commons.configuration.plist.PropertyListParserConstants |
ARRAY_BEGIN, ARRAY_END, ARRAY_SEPARATOR, DATA, DATA_END, DATA_START, DEFAULT, DICT_BEGIN, DICT_END, DICT_SEPARATOR, EOF, EQUAL, ESCAPED_QUOTE, HEXA, LETTER, QUOTE, QUOTED_STRING, STRING, tokenImage, WHITE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
token_source
public PropertyListParserTokenManager token_source
jj_input_stream
SimpleCharStream jj_input_stream
token
public Token token
jj_nt
public Token jj_nt
jj_ntk
private int jj_ntk
jj_gen
private int jj_gen
jj_la1
private final int[] jj_la1
jj_la1_0
private static int[] jj_la1_0
jj_expentries
private java.util.Vector jj_expentries
jj_expentry
private int[] jj_expentry
jj_kind
private int jj_kind
PropertyListParser
public PropertyListParser(java.io.InputStream stream)
PropertyListParser
public PropertyListParser(java.io.Reader stream)
removeQuotes
protected java.lang.String removeQuotes(java.lang.String s)
- Remove the quotes at the beginning and at the end of the specified String.
unescapeQuotes
protected java.lang.String unescapeQuotes(java.lang.String s)
filterData
protected byte[] filterData(java.lang.String s)
throws ParseException
- Remove the white spaces and the data delimiters from the specified
string and parse it as a byte array.
- Throws:
ParseException
parse
public final PropertyListConfiguration parse()
throws ParseException
- Throws:
ParseException
Dictionary
public final PropertyListConfiguration Dictionary()
throws ParseException
- Throws:
ParseException
Property
public final HierarchicalConfiguration.Node Property()
throws ParseException
- Throws:
ParseException
Element
public final java.lang.Object Element()
throws ParseException
- Throws:
ParseException
Array
public final java.util.List Array()
throws ParseException
- Throws:
ParseException
String
public final java.lang.String String()
throws ParseException
- Throws:
ParseException
Data
public final byte[] Data()
throws ParseException
- Throws:
ParseException
jj_la1_0
private static void jj_la1_0()
jj_consume_token
private final Token jj_consume_token(int kind)
throws ParseException
- Throws:
ParseException
jj_ntk
private final int jj_ntk()
generateParseException
public ParseException generateParseException()