| 程序包 | 说明 |
|---|---|
| org.hotwheel.json.impl.jackson |
| 限定符和类型 | 方法和说明 |
|---|---|
JacksonParser |
ByteSourceJsonBootstrapper.constructParser(int parserFeatures,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols,
CharsToNameCanonicalizer rootCharSymbols,
boolean canonicalize,
boolean intern) |
JacksonParser |
JsonFactory.createJsonParser(byte[] data)
Method for constructing parser for parsing the contents of given byte
array.
|
JacksonParser |
JsonFactory.createJsonParser(byte[] data,
int offset,
int len)
Method for constructing parser for parsing the contents of given byte
array.
|
JacksonParser |
JsonFactory.createJsonParser(File f)
Method for constructing JSON parser instance to parse contents of
specified file.
|
JacksonParser |
JsonFactory.createJsonParser(InputStream in)
Method for constructing JSON parser instance to parse the contents
accessed via specified input stream.
|
JacksonParser |
JsonFactory.createJsonParser(Reader r)
Method for constructing parser for parsing the contents accessed via
specified Reader.
|
JacksonParser |
JsonFactory.createJsonParser(String content)
Method for constructing parser for parsing contents of given String.
|
JacksonParser |
JsonFactory.createJsonParser(URL url)
Method for constructing JSON parser instance to parse contents of
resource reference by given URL.
|
JsonEncoding |
ByteSourceJsonBootstrapper.detectEncoding()
Method that should be called after constructing an instace.
|
BigInteger |
JsonParserDelegate.getBigIntegerValue() |
abstract BigInteger |
JacksonParser.getBigIntegerValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_INT and
it can not be used as a Java long primitive type due to its
magnitude. |
BigInteger |
ParserBase.getBigIntegerValue() |
byte[] |
JacksonParser.getBinaryValue()
Convenience alternative to
JacksonParser.getBinaryValue(Base64Variant)
that defaults to using
Base64Variants.getDefaultVariant() as the default encoding. |
byte[] |
ReaderBasedJsonParser.getBinaryValue(Base64Variant b64variant) |
byte[] |
JsonParserDelegate.getBinaryValue(Base64Variant b64variant) |
abstract byte[] |
JacksonParser.getBinaryValue(Base64Variant b64variant)
Method that can be used to read (and consume -- results
may not be accessible using other methods after the call)
base64-encoded binary data
included in the current textual JSON value.
|
abstract byte[] |
ParserMinimalBase.getBinaryValue(Base64Variant b64variant) |
byte[] |
UTF8StreamJsonParser.getBinaryValue(Base64Variant b64variant) |
boolean |
JsonParserDelegate.getBooleanValue() |
boolean |
JacksonParser.getBooleanValue()
Convenience accessor that can be called when the current
token is
JsonToken.VALUE_TRUE or
JsonToken.VALUE_FALSE. |
byte |
JsonParserDelegate.getByteValue() |
byte |
JacksonParser.getByteValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_INT and
it can be expressed as a value of Java byte primitive type. |
String |
JsonParserDelegate.getCurrentName() |
abstract String |
JacksonParser.getCurrentName()
Method that can be called to get the name associated with
the current token: for
JsonToken.FIELD_NAMEs it will
be the same as what JacksonParser.getText() returns;
for field values it will be preceding field name;
and for others (array values, root-level values) null. |
String |
ParserBase.getCurrentName()
Method that can be called to get the name associated with
the current event.
|
abstract String |
ParserMinimalBase.getCurrentName() |
BigDecimal |
JsonParserDelegate.getDecimalValue() |
abstract BigDecimal |
JacksonParser.getDecimalValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_FLOAT or
JsonToken.VALUE_NUMBER_INT. |
BigDecimal |
ParserBase.getDecimalValue() |
double |
JsonParserDelegate.getDoubleValue() |
abstract double |
JacksonParser.getDoubleValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_FLOAT and
it can be expressed as a Java double primitive type. |
double |
ParserBase.getDoubleValue() |
Object |
ReaderBasedJsonParser.getEmbeddedObject() |
Object |
JsonParserDelegate.getEmbeddedObject() |
abstract Object |
JacksonParser.getEmbeddedObject()
Accessor that can be called if (and only if) the current token
is
JsonToken.VALUE_EMBEDDED_OBJECT. |
Object |
UTF8StreamJsonParser.getEmbeddedObject() |
float |
JsonParserDelegate.getFloatValue() |
abstract float |
JacksonParser.getFloatValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_FLOAT and
it can be expressed as a Java float primitive type. |
float |
ParserBase.getFloatValue() |
int |
JsonParserDelegate.getIntValue() |
abstract int |
JacksonParser.getIntValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_INT and
it can be expressed as a value of Java int primitive type. |
int |
ParserBase.getIntValue() |
long |
JsonParserDelegate.getLongValue() |
abstract long |
JacksonParser.getLongValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_INT and
it can be expressed as a Java long primitive type. |
long |
ParserBase.getLongValue() |
JacksonParser.NumberType |
JsonParserDelegate.getNumberType() |
abstract JacksonParser.NumberType |
JacksonParser.getNumberType()
If current token is of type
JsonToken.VALUE_NUMBER_INT or
JsonToken.VALUE_NUMBER_FLOAT, returns
one of JacksonParser.NumberType constants; otherwise returns null. |
JacksonParser.NumberType |
ParserBase.getNumberType() |
Number |
JsonParserDelegate.getNumberValue() |
abstract Number |
JacksonParser.getNumberValue()
Generic number value accessor method that will work for
all kinds of numeric values.
|
Number |
ParserBase.getNumberValue() |
short |
JsonParserDelegate.getShortValue() |
short |
JacksonParser.getShortValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_INT and
it can be expressed as a value of Java short primitive type. |
String |
ReaderBasedJsonParser.getText()
Method for accessing textual representation of the current event;
if no current event (before first call to
ReaderBasedJsonParser.nextToken(), or
after encountering end-of-input), returns null. |
String |
JsonParserDelegate.getText() |
abstract String |
JacksonParser.getText()
Method for accessing textual representation of the current token;
if no current token (before first call to
JacksonParser.nextToken(), or
after encountering end-of-input), returns null. |
abstract String |
ParserMinimalBase.getText() |
String |
UTF8StreamJsonParser.getText() |
char[] |
ReaderBasedJsonParser.getTextCharacters() |
char[] |
JsonParserDelegate.getTextCharacters() |
abstract char[] |
JacksonParser.getTextCharacters()
Method similar to
JacksonParser.getText(), but that will return
underlying (unmodifiable) character array that contains
textual value, instead of constructing a String object
to contain this information. |
abstract char[] |
ParserMinimalBase.getTextCharacters() |
char[] |
UTF8StreamJsonParser.getTextCharacters() |
int |
ReaderBasedJsonParser.getTextLength() |
int |
JsonParserDelegate.getTextLength() |
abstract int |
JacksonParser.getTextLength()
Accessor used with
JacksonParser.getTextCharacters(), to know length
of String stored in returned buffer. |
abstract int |
ParserMinimalBase.getTextLength() |
int |
UTF8StreamJsonParser.getTextLength() |
int |
ReaderBasedJsonParser.getTextOffset() |
int |
JsonParserDelegate.getTextOffset() |
abstract int |
JacksonParser.getTextOffset()
Accessor used with
JacksonParser.getTextCharacters(), to know offset
of the first text content character within buffer. |
abstract int |
ParserMinimalBase.getTextOffset() |
int |
UTF8StreamJsonParser.getTextOffset() |
boolean |
JacksonParser.getValueAsBoolean()
Method that will try to convert value of current token to a
boolean.
|
boolean |
JacksonParser.getValueAsBoolean(boolean defaultValue)
Method that will try to convert value of current token to a
boolean.
|
boolean |
ParserMinimalBase.getValueAsBoolean(boolean defaultValue) |
double |
JacksonParser.getValueAsDouble()
Method that will try to convert value of current token to a Java
double.
|
double |
JacksonParser.getValueAsDouble(double defaultValue)
Method that will try to convert value of current token to a
Java double.
|
double |
ParserMinimalBase.getValueAsDouble(double defaultValue) |
int |
JacksonParser.getValueAsInt()
Method that will try to convert value of current token to a
int.
|
int |
JacksonParser.getValueAsInt(int defaultValue)
Method that will try to convert value of current token to a
int.
|
int |
ParserMinimalBase.getValueAsInt(int defaultValue) |
long |
JacksonParser.getValueAsLong()
Method that will try to convert value of current token to a
long.
|
long |
JacksonParser.getValueAsLong(long defaultValue)
Method that will try to convert value of current token to a
long.
|
long |
ParserMinimalBase.getValueAsLong(long defaultValue) |
Boolean |
ReaderBasedJsonParser.nextBooleanValue() |
Boolean |
JacksonParser.nextBooleanValue()
Method that fetches next token (as if calling
JacksonParser.nextToken()) and
if it is JsonToken.VALUE_TRUE or JsonToken.VALUE_FALSE
returns matching Boolean value; otherwise return null. |
Boolean |
UTF8StreamJsonParser.nextBooleanValue() |
boolean |
JacksonParser.nextFieldName(SerializableString str)
Method that fetches next token (as if calling
JacksonParser.nextToken()) and
verifies whether it is JsonToken.FIELD_NAME with specified name
and returns result of that comparison. |
boolean |
UTF8StreamJsonParser.nextFieldName(SerializableString str) |
int |
ReaderBasedJsonParser.nextIntValue(int defaultValue) |
int |
JacksonParser.nextIntValue(int defaultValue)
Method that fetches next token (as if calling
JacksonParser.nextToken()) and
if it is JsonToken.VALUE_NUMBER_INT returns 32-bit int value;
otherwise returns specified default value
It is functionally equivalent to:
return (nextToken() == JsonToken.VALUE_NUMBER_INT) ? |
int |
UTF8StreamJsonParser.nextIntValue(int defaultValue) |
long |
ReaderBasedJsonParser.nextLongValue(long defaultValue) |
long |
JacksonParser.nextLongValue(long defaultValue)
Method that fetches next token (as if calling
JacksonParser.nextToken()) and
if it is JsonToken.VALUE_NUMBER_INT returns 64-bit long value;
otherwise returns specified default value
It is functionally equivalent to:
return (nextToken() == JsonToken.VALUE_NUMBER_INT) ? |
long |
UTF8StreamJsonParser.nextLongValue(long defaultValue) |
String |
ReaderBasedJsonParser.nextTextValue() |
String |
JacksonParser.nextTextValue()
Method that fetches next token (as if calling
JacksonParser.nextToken()) and
if it is JsonToken.VALUE_STRING returns contained String value;
otherwise returns null. |
String |
UTF8StreamJsonParser.nextTextValue() |
JsonToken |
ReaderBasedJsonParser.nextToken() |
JsonToken |
JsonParserDelegate.nextToken() |
abstract JsonToken |
JacksonParser.nextToken()
Main iteration method, which will advance stream enough
to determine type of the next token, if any.
|
abstract JsonToken |
ParserMinimalBase.nextToken() |
JsonToken |
JsonParserSequence.nextToken() |
JsonToken |
UTF8StreamJsonParser.nextToken() |
JsonToken |
JsonParserDelegate.nextValue() |
abstract JsonToken |
JacksonParser.nextValue()
Iteration method that will advance stream enough
to determine type of the next token that is a value type
(including JSON Array and Object start/end markers).
|
JsonToken |
ParserMinimalBase.nextValue() |
JacksonParser |
JsonParserDelegate.skipChildren() |
abstract JacksonParser |
JacksonParser.skipChildren()
Method that will skip all child tokens of an array or
object token that the parser currently points to,
iff stream points to
JsonToken.START_OBJECT or JsonToken.START_ARRAY. |
JacksonParser |
ParserMinimalBase.skipChildren() |
Copyright © 2002–2019 The MyMMSCs Software Foundation. All rights reserved.