org.apache.commons.configuration.plist

Class PropertyListParser

class PropertyListParser extends 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

Field Summary
Vectorjj_expentries
int[]jj_expentry
intjj_gen
SimpleCharStreamjj_input_stream
intjj_kind
int[]jj_la1
static int[]jj_la1_0
Tokenjj_nt
intjj_ntk
Tokentoken
PropertyListParserTokenManagertoken_source
Constructor Summary
PropertyListParser(InputStream stream)
PropertyListParser(Reader stream)
Method Summary
ListArray()
byte[]Data()
PropertyListConfigurationDictionary()
ObjectElement()
protected byte[]filterData(String s)
Remove the white spaces and the data delimiters from the specified string and parse it as a byte array.
ParseExceptiongenerateParseException()
Tokenjj_consume_token(int kind)
static voidjj_la1_0()
intjj_ntk()
PropertyListConfigurationparse()
HierarchicalConfiguration.NodeProperty()
protected StringremoveQuotes(String s)
Remove the quotes at the beginning and at the end of the specified String.
StringString()
protected StringunescapeQuotes(String s)

Field Detail

jj_expentries

private Vector jj_expentries

jj_expentry

private int[] jj_expentry

jj_gen

private int jj_gen

jj_input_stream

SimpleCharStream jj_input_stream

jj_kind

private int jj_kind

jj_la1

private final int[] jj_la1

jj_la1_0

private static int[] jj_la1_0

jj_nt

public Token jj_nt

jj_ntk

private int jj_ntk

token

public Token token

token_source

public PropertyListParserTokenManager token_source

Constructor Detail

PropertyListParser

public PropertyListParser(InputStream stream)

PropertyListParser

public PropertyListParser(Reader stream)

Method Detail

Array

public final List Array()

Data

public final byte[] Data()

Dictionary

public final PropertyListConfiguration Dictionary()

Element

public final Object Element()

filterData

protected byte[] filterData(String s)
Remove the white spaces and the data delimiters from the specified string and parse it as a byte array.

generateParseException

public ParseException generateParseException()

jj_consume_token

private final Token jj_consume_token(int kind)

jj_la1_0

private static void jj_la1_0()

jj_ntk

private final int jj_ntk()

parse

public final PropertyListConfiguration parse()

Property

public final HierarchicalConfiguration.Node Property()

removeQuotes

protected String removeQuotes(String s)
Remove the quotes at the beginning and at the end of the specified String.

String

public final String String()

unescapeQuotes

protected String unescapeQuotes(String s)