Top Description Inners Fields Constructors Methods
com.dd.plist

public final Class ASCIIPropertyListParser

extends Object
Class Inheritance
Imports
java.io.CharArrayWriter, .File, .IOException, .InputStream, .Reader, .UnsupportedEncodingException, java.nio.file.Files, .Path, java.text.ParseException, .StringCharacterIterator, java.util.LinkedList, .List, .Objects

Parser for ASCII property lists. Supports Apple OS X/iOS and GnuStep/NeXTSTEP format. This parser is based on the recursive descent paradigm, but the underlying grammar is not explicitly defined.

Resources on ASCII property list format:

Author
Daniel Dreibrodt

Nested and Inner Type Summary

Modifier and TypeClass and Description
private class

Field Summary

Modifier and TypeField and Description
public static final char
ARRAY_BEGIN_TOKEN

The token marking the beginning of an array.

public static final char
ARRAY_END_TOKEN

The token marking the end of an array.

public static final char
ARRAY_ITEM_DELIMITER_TOKEN

The token marking the end of an array element.

public static final char
COMMENT_BEGIN_TOKEN

The token marking the beginning of a comment.

private final char[]
data

Property list source data

public static final char
DATA_BASE64_BEGIN_TOKEN

The token marking the beginning of a data element in Base-64 encoding.

public static final char
DATA_BASE64_END_TOKEN

The token marking the end of a data element in Base-64 encoding.

public static final char
DATA_BEGIN_TOKEN

The token marking the beginning of a data element.

public static final char
DATA_END_TOKEN

The token marking the end of a data element.

public static final char
DATA_GSBOOL_BEGIN_TOKEN

The token marking the beginning of a GnuStep boolean value.

public static final char
DATA_GSBOOL_FALSE_TOKEN

The token representing the boolean value false in the GnuStep format.

public static final char
DATA_GSBOOL_TRUE_TOKEN

The token representing the boolean value true in the GnuStep format.

public static final char
DATA_GSDATE_BEGIN_TOKEN

The token marking the beginning of a GnuStep date.

public static final char
DATA_GSINT_BEGIN_TOKEN

The token marking the beginning of a GnuStep integer value.

public static final char
DATA_GSOBJECT_BEGIN_TOKEN

The token marking the beginning of a GnuStep object.

public static final char
DATA_GSREAL_BEGIN_TOKEN

The token marking the beginning of a GnuStep real value.

public static final char
DATE_APPLE_DATE_TIME_DELIMITER

The token that marks the beginning of the time zone in the Apple format.

public static final char
DATE_APPLE_END_TOKEN

The token that marks the end of the time zone in the Apple format.

public static final char
DATE_DATE_FIELD_DELIMITER

The token that separates the parts of a date value (year, month and day).

public static final char
DATE_GS_DATE_TIME_DELIMITER

The token that separates the date and time in the GnuStep format.

public static final char
DATE_TIME_FIELD_DELIMITER

The token that separates the parts of a time value (hour, minute and second).

public static final char
DICTIONARY_ASSIGN_TOKEN

The token marking the assignment of a value to a dictionary key.

public static final char
DICTIONARY_BEGIN_TOKEN

The token marking the beginning of a dictionary.

public static final char
DICTIONARY_END_TOKEN

The token marking the end of a dictionary.

public static final char
DICTIONARY_ITEM_DELIMITER_TOKEN

The token marking the end of a dictionary entry.

private int
index

Current parsing index

private int
lineBeginning

The index at which the current line began.

private int
lineNo

Current line number.

public static final char
MULTILINE_COMMENT_END_TOKEN

The token marking the end of a multi-line comment.

public static final char
MULTILINE_COMMENT_SECOND_TOKEN

The token marking a comment to be multi-line.

public static final char
QUOTEDSTRING_BEGIN_TOKEN

The token marking the beginning of a quoted string.

public static final char
QUOTEDSTRING_END_TOKEN

The token marking the end of a quoted string.

public static final char
QUOTEDSTRING_ESCAPE_TOKEN

The token marking the beginning of an escape sequence in a quoted string.

public static final char
SINGLELINE_COMMENT_SECOND_TOKEN

The token marking a comment to be single-line.

public static final char
WHITESPACE_CARRIAGE_RETURN

The carriage return character token.

public static final char
WHITESPACE_NEWLINE

The newline character token.

public static final char
WHITESPACE_SPACE

The space character token.

public static final char
WHITESPACE_TAB

The tab character token.

Constructor Summary

AccessConstructor and Description
private
ASCIIPropertyListParser(byte[]
The content of the property list that is to be parsed.
propertyListContent
,
String
The name of a supported charset to decode the property list.
encoding
)

Creates a new parser for the given property list content.

private
ASCIIPropertyListParser(char[]
The content of the property list that is to be parsed.
propertyListContent
)

Creates a new parser for the given property list content.

Method Summary

Modifier and TypeMethod and Description
private boolean

Returns:

Whether one of the symbols can be accepted or not.
accept
(char...
The symbols to check.
acceptableSymbols
)

Checks whether the given symbols can be accepted, that is, if one of the given symbols is found at the current parsing position.

private boolean

Returns:

Whether the symbol can be accepted or not.
accept
(char
The symbol to check.
acceptableSymbol
)

Checks whether the given symbol can be accepted, that is, if the given symbols is found at the current parsing position.

private boolean

Returns:

Whether the given tokens occur at the current parsing position.
acceptSequence
(char...
The sequence of tokens to look for.
sequence
)

Checks whether the given sequence of symbols can be accepted.

private ParseException
private ParseException
createParseException(String message, int index)

private void
expect(char...
The expected symbols.
expectedSymbols
)

Expects the input to have one of the given symbols at the current parsing position.

private void
expect(char
The expected symbol.
expectedSymbol
)

Expects the input to have the given symbol at the current parsing position.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(File
The ASCII property list file.
f
)

Parses an ASCII property list file.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(File
The ASCII property list file.
f
,
String
The name of a supported charset to decode the property list.
encoding
)

Parses an ASCII property list file.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(Path
The path to the ASCII property list file.
path
,
String
The name of a supported charset to decode the property list.
encoding
)

Parses an ASCII property list file.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(Path
The path to the ASCII property list file.
path
)

Parses an ASCII property list file.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(InputStream
The input stream that provides the property list's data.
in
)

Parses an ASCII property list from an input stream.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(InputStream
The input stream that points to the property list's data.
in
,
String
The name of a supported charset to decode the property list.
encoding
)

Parses an ASCII property list from an input stream.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(Reader
The reader that provides the property list's data.
reader
)

Parses an ASCII property list from a Reader.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(String
A string containing the property list's data.
plistData
)

Parses an ASCII property list from a String

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(byte[]
The ASCII property list data.
bytes
)

Parses an ASCII property list from a byte array.

public static NSObject

Returns:

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.
parse
(byte[]
The ASCII property list data.
bytes
,
String
The name of a supported java.nio.charset.Charset charset to decode the property list.
encoding
)

Parses an ASCII property list from a byte array.

public NSObject

Returns:

The root object of the property list. This can either be a NSDictionary or a NSArray.
parse
()

Parses the property list from the beginning and returns the root object of the property list.

private NSArray

Returns:

The array found at the parsing position.
parseArray
()

Parses an array from the current parsing position.

private NSObject

Returns:

The data object found at the parsing position.
parseData
()

Parses a data object from the current parsing position.

private NSObject

Returns:

An NSDate if the string represents such an object. Otherwise, an NSString is returned.
parseDateString
()

Attempts to parse a plain string as a date if possible.

private NSDictionary

Returns:

The dictionary found at the parsing position.
parseDictionary
()

Parses a dictionary from the current parsing position.

private NSObject

Returns:

The parsed NSObject.
parseObject
()

Parses the NSObject found at the current position in the property list data stream.

private String

Returns:

The quoted string found at the parsing method with all special characters unescaped.
parseQuotedString
()

Parses a quoted string from the current parsing position.

private String

Returns:

The string found at the current parsing position.
parseString
()

Parses a plain string from the current parsing position.

private void
read(char
The symbol to read.
symbol
)

Reads an expected symbol.

private String

Returns:

The input until one the given symbols.
readInputUntil
(char...
The symbols that can occur after the string to read.
symbols
)

Reads input until one of the given symbols is found.

private String

Returns:

The input until the given symbol.
readInputUntil
(char
The symbol that can occur after the string to read.
symbol
)

Reads input until the given symbol is found.

private void
skip()

Skips the current symbol.

private void
skip(int
The amount of symbols to skip.
numSymbols
)

Skips several symbols

private void
skipWhitespacesAndComments()

Skips all whitespaces and comments from the current parsing position onward.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ARRAY_BEGIN_TOKENback to summary
public static final char ARRAY_BEGIN_TOKEN

The token marking the beginning of an array.

ARRAY_END_TOKENback to summary
public static final char ARRAY_END_TOKEN

The token marking the end of an array.

ARRAY_ITEM_DELIMITER_TOKENback to summary
public static final char ARRAY_ITEM_DELIMITER_TOKEN

The token marking the end of an array element.

COMMENT_BEGIN_TOKENback to summary
public static final char COMMENT_BEGIN_TOKEN

The token marking the beginning of a comment.

databack to summary
private final char[] data

Property list source data

DATA_BASE64_BEGIN_TOKENback to summary
public static final char DATA_BASE64_BEGIN_TOKEN

The token marking the beginning of a data element in Base-64 encoding.

DATA_BASE64_END_TOKENback to summary
public static final char DATA_BASE64_END_TOKEN

The token marking the end of a data element in Base-64 encoding.

DATA_BEGIN_TOKENback to summary
public static final char DATA_BEGIN_TOKEN

The token marking the beginning of a data element.

DATA_END_TOKENback to summary
public static final char DATA_END_TOKEN

The token marking the end of a data element.

DATA_GSBOOL_BEGIN_TOKENback to summary
public static final char DATA_GSBOOL_BEGIN_TOKEN

The token marking the beginning of a GnuStep boolean value.

DATA_GSBOOL_FALSE_TOKENback to summary
public static final char DATA_GSBOOL_FALSE_TOKEN

The token representing the boolean value false in the GnuStep format.

DATA_GSBOOL_TRUE_TOKENback to summary
public static final char DATA_GSBOOL_TRUE_TOKEN

The token representing the boolean value true in the GnuStep format.

DATA_GSDATE_BEGIN_TOKENback to summary
public static final char DATA_GSDATE_BEGIN_TOKEN

The token marking the beginning of a GnuStep date.

DATA_GSINT_BEGIN_TOKENback to summary
public static final char DATA_GSINT_BEGIN_TOKEN

The token marking the beginning of a GnuStep integer value.

DATA_GSOBJECT_BEGIN_TOKENback to summary
public static final char DATA_GSOBJECT_BEGIN_TOKEN

The token marking the beginning of a GnuStep object.

DATA_GSREAL_BEGIN_TOKENback to summary
public static final char DATA_GSREAL_BEGIN_TOKEN

The token marking the beginning of a GnuStep real value.

DATE_APPLE_DATE_TIME_DELIMITERback to summary
public static final char DATE_APPLE_DATE_TIME_DELIMITER

The token that marks the beginning of the time zone in the Apple format.

DATE_APPLE_END_TOKENback to summary
public static final char DATE_APPLE_END_TOKEN

The token that marks the end of the time zone in the Apple format.

DATE_DATE_FIELD_DELIMITERback to summary
public static final char DATE_DATE_FIELD_DELIMITER

The token that separates the parts of a date value (year, month and day).

DATE_GS_DATE_TIME_DELIMITERback to summary
public static final char DATE_GS_DATE_TIME_DELIMITER

The token that separates the date and time in the GnuStep format.

DATE_TIME_FIELD_DELIMITERback to summary
public static final char DATE_TIME_FIELD_DELIMITER

The token that separates the parts of a time value (hour, minute and second).

DICTIONARY_ASSIGN_TOKENback to summary
public static final char DICTIONARY_ASSIGN_TOKEN

The token marking the assignment of a value to a dictionary key.

DICTIONARY_BEGIN_TOKENback to summary
public static final char DICTIONARY_BEGIN_TOKEN

The token marking the beginning of a dictionary.

DICTIONARY_END_TOKENback to summary
public static final char DICTIONARY_END_TOKEN

The token marking the end of a dictionary.

DICTIONARY_ITEM_DELIMITER_TOKENback to summary
public static final char DICTIONARY_ITEM_DELIMITER_TOKEN

The token marking the end of a dictionary entry.

indexback to summary
private int index

Current parsing index

lineBeginningback to summary
private int lineBeginning

The index at which the current line began.

lineNoback to summary
private int lineNo

Current line number.

MULTILINE_COMMENT_END_TOKENback to summary
public static final char MULTILINE_COMMENT_END_TOKEN

The token marking the end of a multi-line comment. Must be preceded by a ASCIIPropertyListParser#MULTILINE_COMMENT_SECOND_TOKEN.

MULTILINE_COMMENT_SECOND_TOKENback to summary
public static final char MULTILINE_COMMENT_SECOND_TOKEN

The token marking a comment to be multi-line.

QUOTEDSTRING_BEGIN_TOKENback to summary
public static final char QUOTEDSTRING_BEGIN_TOKEN

The token marking the beginning of a quoted string.

QUOTEDSTRING_END_TOKENback to summary
public static final char QUOTEDSTRING_END_TOKEN

The token marking the end of a quoted string.

QUOTEDSTRING_ESCAPE_TOKENback to summary
public static final char QUOTEDSTRING_ESCAPE_TOKEN

The token marking the beginning of an escape sequence in a quoted string.

SINGLELINE_COMMENT_SECOND_TOKENback to summary
public static final char SINGLELINE_COMMENT_SECOND_TOKEN

The token marking a comment to be single-line.

WHITESPACE_CARRIAGE_RETURNback to summary
public static final char WHITESPACE_CARRIAGE_RETURN

The carriage return character token.

WHITESPACE_NEWLINEback to summary
public static final char WHITESPACE_NEWLINE

The newline character token.

WHITESPACE_SPACEback to summary
public static final char WHITESPACE_SPACE

The space character token.

WHITESPACE_TABback to summary
public static final char WHITESPACE_TAB

The tab character token.

Constructor Detail

ASCIIPropertyListParserback to summary
private ASCIIPropertyListParser(byte[] propertyListContent, String encoding) throws UnsupportedEncodingException

Creates a new parser for the given property list content.

Parameters
propertyListContent:byte[]

The content of the property list that is to be parsed.

encoding:String

The name of a supported charset to decode the property list.

Exceptions
UnsupportedEncodingException:
If no support for the named charset is available in this instance of the Java virtual machine.
ASCIIPropertyListParserback to summary
private ASCIIPropertyListParser(char[] propertyListContent)

Creates a new parser for the given property list content.

Parameters
propertyListContent:char[]

The content of the property list that is to be parsed.

Method Detail

acceptback to summary
private boolean accept(char... acceptableSymbols)

Checks whether the given symbols can be accepted, that is, if one of the given symbols is found at the current parsing position.

Parameters
acceptableSymbols:char[]

The symbols to check.

Returns:boolean

Whether one of the symbols can be accepted or not.

acceptback to summary
private boolean accept(char acceptableSymbol)

Checks whether the given symbol can be accepted, that is, if the given symbols is found at the current parsing position.

Parameters
acceptableSymbol:char

The symbol to check.

Returns:boolean

Whether the symbol can be accepted or not.

acceptSequenceback to summary
private boolean acceptSequence(char... sequence)

Checks whether the given sequence of symbols can be accepted.

Parameters
sequence:char[]

The sequence of tokens to look for.

Returns:boolean

Whether the given tokens occur at the current parsing position.

createParseExceptionback to summary
private ParseException createParseException(String message)
createParseExceptionback to summary
private ParseException createParseException(String message, int index)
expectback to summary
private void expect(char... expectedSymbols) throws ParseException

Expects the input to have one of the given symbols at the current parsing position.

Parameters
expectedSymbols:char[]

The expected symbols.

Exceptions
ParseException:
If none of the expected symbols could be found.
expectback to summary
private void expect(char expectedSymbol) throws ParseException

Expects the input to have the given symbol at the current parsing position.

Parameters
expectedSymbol:char

The expected symbol.

Exceptions
ParseException:
If the expected symbol could not be found.
parseback to summary
public static NSObject parse(File f) throws IOException, ParseException

Parses an ASCII property list file.

Parameters
f:File

The ASCII property list file.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
IOException:
If an error occurs while reading from the input stream.
ParseException:
If an error occurs during parsing.
parseback to summary
public static NSObject parse(File f, String encoding) throws IOException, ParseException

Parses an ASCII property list file.

Parameters
f:File

The ASCII property list file.

encoding:String

The name of a supported charset to decode the property list.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
IOException:
If an error occurs while reading from the input stream.
ParseException:
If an error occurs during parsing.
UnsupportedEncodingException:
If no support for the named charset is available in this instance of the Java virtual machine.
parseback to summary
public static NSObject parse(Path path, String encoding) throws IOException, ParseException

Parses an ASCII property list file.

Parameters
path:Path

The path to the ASCII property list file.

encoding:String

The name of a supported charset to decode the property list.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
IOException:
If an error occurs while reading from the input stream.
ParseException:
If an error occurs during parsing.
UnsupportedEncodingException:
If no support for the named charset is available in this instance of the Java virtual machine.
parseback to summary
public static NSObject parse(Path path) throws IOException, ParseException

Parses an ASCII property list file.

Parameters
path:Path

The path to the ASCII property list file.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
IOException:
If an error occurs while reading from the input stream.
ParseException:
If an error occurs during parsing.
parseback to summary
public static NSObject parse(InputStream in) throws ParseException, IOException

Parses an ASCII property list from an input stream. This method does not close the specified input stream.

Parameters
in:InputStream

The input stream that provides the property list's data.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
ParseException:
If an error occurs during parsing.
IOException:
If an error occurs while reading from the input stream.
parseback to summary
public static NSObject parse(InputStream in, String encoding) throws ParseException, IOException

Parses an ASCII property list from an input stream. This method does not close the specified input stream.

Parameters
in:InputStream

The input stream that points to the property list's data.

encoding:String

The name of a supported charset to decode the property list.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
ParseException:
If an error occurs during parsing.
IOException:
If an error occurs while reading from the input stream.
UnsupportedEncodingException:
If no support for the named charset is available in this instance of the Java virtual machine.
parseback to summary
public static NSObject parse(Reader reader) throws ParseException, IOException

Parses an ASCII property list from a Reader. This method does not close the specified reader.

Parameters
reader:Reader

The reader that provides the property list's data.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
ParseException:
If an error occurs during parsing.
IOException:
If an error occurs while reading from the input reader.
parseback to summary
public static NSObject parse(String plistData) throws ParseException

Parses an ASCII property list from a String

Parameters
plistData:String

A string containing the property list's data.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
ParseException:
If an error occurs during parsing.
parseback to summary
public static NSObject parse(byte[] bytes) throws ParseException

Parses an ASCII property list from a byte array.

Parameters
bytes:byte[]

The ASCII property list data.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
ParseException:
If an error occurs during parsing.
parseback to summary
public static NSObject parse(byte[] bytes, String encoding) throws ParseException, UnsupportedEncodingException

Parses an ASCII property list from a byte array.

Parameters
bytes:byte[]

The ASCII property list data.

encoding:String

The name of a supported java.nio.charset.Charset charset to decode the property list.

Returns:NSObject

The root object of the property list. This is usually a NSDictionary but can also be a NSArray.

Exceptions
ParseException:
If an error occurs during parsing.
UnsupportedEncodingException:
If no support for the named charset is available in this instance of the Java virtual machine.
parseback to summary
public NSObject parse() throws ParseException

Parses the property list from the beginning and returns the root object of the property list.

Returns:NSObject

The root object of the property list. This can either be a NSDictionary or a NSArray.

Exceptions
ParseException:
If an error occurred during parsing
parseArrayback to summary
private NSArray parseArray() throws ParseException

Parses an array from the current parsing position. The prerequisite for calling this method is, that an array begin token has been read.

Returns:NSArray

The array found at the parsing position.

parseDataback to summary
private NSObject parseData() throws ParseException

Parses a data object from the current parsing position. This can either be a NSData object or a GnuStep NSNumber or NSDate. The prerequisite for calling this method is, that a data begin token has been read.

Returns:NSObject

The data object found at the parsing position.

parseDateStringback to summary
private NSObject parseDateString()

Attempts to parse a plain string as a date if possible.

Returns:NSObject

An NSDate if the string represents such an object. Otherwise, an NSString is returned.

parseDictionaryback to summary
private NSDictionary parseDictionary() throws ParseException

Parses a dictionary from the current parsing position. The prerequisite for calling this method is, that a dictionary begin token has been read.

Returns:NSDictionary

The dictionary found at the parsing position.

parseObjectback to summary
private NSObject parseObject() throws ParseException

Parses the NSObject found at the current position in the property list data stream.

Returns:NSObject

The parsed NSObject.

See Also
ASCIIPropertyListParser#index
parseQuotedStringback to summary
private String parseQuotedString() throws ParseException

Parses a quoted string from the current parsing position. The prerequisite for calling this method is, that a quoted string begin token has been read.

Returns:String

The quoted string found at the parsing method with all special characters unescaped.

Exceptions
ParseException:
If an error occurred during parsing.
parseStringback to summary
private String parseString()

Parses a plain string from the current parsing position. The string is made up of all characters to the next whitespace, delimiter token or assignment token.

Returns:String

The string found at the current parsing position.

readback to summary
private void read(char symbol) throws ParseException

Reads an expected symbol.

Parameters
symbol:char

The symbol to read.

Exceptions
ParseException:
If the expected symbol could not be read.
readInputUntilback to summary
private String readInputUntil(char... symbols)

Reads input until one of the given symbols is found.

Parameters
symbols:char[]

The symbols that can occur after the string to read.

Returns:String

The input until one the given symbols.

readInputUntilback to summary
private String readInputUntil(char symbol)

Reads input until the given symbol is found.

Parameters
symbol:char

The symbol that can occur after the string to read.

Returns:String

The input until the given symbol.

skipback to summary
private void skip()

Skips the current symbol.

skipback to summary
private void skip(int numSymbols)

Skips several symbols

Parameters
numSymbols:int

The amount of symbols to skip.

skipWhitespacesAndCommentsback to summary
private void skipWhitespacesAndComments()

Skips all whitespaces and comments from the current parsing position onward.

trackLineBreakback to summary
private void trackLineBreak()
com.dd.plist back to summary

private Class ASCIIPropertyListParser.EscapeSequenceHandler

extends Object
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final int
private final StringBuilder
private StringBuilder
private int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private boolean
public boolean
private boolean
private boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

startIndexback to summary
private final int startIndex
stringBuilderback to summary
private final StringBuilder stringBuilder
unicodeReferenceback to summary
private StringBuilder unicodeReference
unicodeReferenceRadixback to summary
private int unicodeReferenceRadix

Constructor Detail

EscapeSequenceHandlerback to summary
public EscapeSequenceHandler(StringBuilder stringBuilder)

Method Detail

handleEndOfStringback to summary
public void handleEndOfString() throws ParseException
handleFirstCharback to summary
private boolean handleFirstChar(char c) throws ParseException
handleNextCharback to summary
public boolean handleNextChar(char c) throws ParseException
handleNextCharOfHexEscapeSequenceback to summary
private boolean handleNextCharOfHexEscapeSequence(char c) throws ParseException
handleNextCharOfOctalEscapeSequenceback to summary
private boolean handleNextCharOfOctalEscapeSequence(char c) throws ParseException