public class AponReader extends AponFormat
COMMENT_LINE_START, CURLY_BRACKET_CLOSE, CURLY_BRACKET_OPEN, DOUBLE_QUOTE_CHAR, ESCAPE_CHAR, FALSE, INDENT_STRING, NAME_VALUE_SEPARATOR, NEW_LINE_CHAR, NO_CONTROL_CHAR, NULL, ROUND_BRACKET_CLOSE, ROUND_BRACKET_OPEN, SINGLE_QUOTE_CHAR, SPACE, SPACE_CHAR, SQUARE_BRACKET_CLOSE, SQUARE_BRACKET_OPEN, TEXT_LINE_START, TRUE| Constructor | Description |
|---|---|
AponReader(java.io.Reader reader) |
Instantiates a new AponReader.
|
AponReader(java.lang.String text) |
Instantiates a new AponReader.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Closes the reader.
|
static Parameters |
parse(java.io.File file) |
Converts to a Parameters object from a file.
|
static Parameters |
parse(java.io.File file,
java.lang.String encoding) |
Converts to a Parameters object from a file.
|
static <T extends Parameters> |
parse(java.io.File file,
java.lang.String encoding,
T parameters) |
Converts into a given Parameters object from a file.
|
static <T extends Parameters> |
parse(java.io.File file,
T parameters) |
Converts into a given Parameters object from a file.
|
static Parameters |
parse(java.io.Reader reader) |
Converts to a Parameters object from a character-input stream.
|
static <T extends Parameters> |
parse(java.io.Reader reader,
T parameters) |
Converts into a given Parameters object from a character-input stream.
|
static Parameters |
parse(java.lang.String text) |
Converts an APON formatted string into a Parameters object.
|
static <T extends Parameters> |
parse(java.lang.String text,
T parameters) |
Converts an APON formatted string into a given Parameters object.
|
Parameters |
read() |
Reads an APON document into a
VariableParameters object. |
<T extends Parameters> |
read(T parameters) |
Reads an APON formatted document into the specified
Parameters object. |
escape, unescapepublic AponReader(java.lang.String text)
text - the APON formatted stringpublic AponReader(java.io.Reader reader)
reader - the character stream whose contents can be parsed as APONpublic Parameters read() throws AponParseException
VariableParameters object.AponParseException - if reading APON format document failspublic <T extends Parameters> T read(T parameters)
Parameters object.T - the generic typeparameters - the Parameters objectAponParseException - if reading APON format document failspublic void close()
throws java.io.IOException
java.io.IOException - if an I/O error occurspublic static Parameters parse(java.lang.String text) throws AponParseException
text - the APON formatted stringAponParseException - if reading APON format document failspublic static <T extends Parameters> T parse(java.lang.String text, T parameters) throws AponParseException
T - the generic typetext - the APON formatted stringparameters - the Parameters objectAponParseException - if reading APON format document failspublic static Parameters parse(java.io.File file) throws AponParseException
file - the file to parseAponParseException - if reading APON format document failspublic static Parameters parse(java.io.File file, java.lang.String encoding) throws AponParseException
file - the file to parseencoding - the character encodingAponParseException - if reading APON format document failspublic static <T extends Parameters> T parse(java.io.File file, T parameters) throws AponParseException
T - the generic typefile - the file to parseparameters - the Parameters objectAponParseException - if reading APON format document failspublic static <T extends Parameters> T parse(java.io.File file, java.lang.String encoding, T parameters) throws AponParseException
T - the generic typefile - the file to parseencoding - the character encodingparameters - the Parameters objectAponParseException - if reading APON format document failspublic static Parameters parse(java.io.Reader reader) throws AponParseException
reader - the character-input streamAponParseException - if reading APON format document failspublic static <T extends Parameters> T parse(java.io.Reader reader, T parameters) throws AponParseException
T - the generic typereader - the character-input streamparameters - the Parameters objectAponParseException - if reading APON format document failsCopyright © 2008–2018 The Aspectran Project. All rights reserved.