org.apache.commons.configuration.plist
Class PropertyListParser
java.lang.Object
org.apache.commons.configuration.plist.PropertyListParser
- All Implemented Interfaces:
- PropertyListParserConstants
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
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
PropertyListParser
public PropertyListParser(InputStream stream)
PropertyListParser
public PropertyListParser(Reader stream)
removeQuotes
protected String removeQuotes(String s)
- Remove the quotes at the beginning and at the end of the specified String.
unescapeQuotes
protected String unescapeQuotes(String s)
filterData
protected byte[] filterData(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 Object Element()
throws ParseException
- Throws:
ParseException
Array
public final List Array()
throws ParseException
- Throws:
ParseException
String
public final String String()
throws ParseException
- Throws:
ParseException
Data
public final byte[] Data()
throws ParseException
- Throws:
ParseException
generateParseException
public ParseException generateParseException()
Copyright © 2001-2007 The Apache Software Foundation. All Rights Reserved.