程序包 | 说明 |
---|---|
org.codehaus.jackson |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonParser )
instances. |
org.codehaus.jackson.impl |
Parser and generator implementation classes that Jackson
defines and uses.
|
org.codehaus.jackson.jaxrs |
Jackson-based JAX-RS provider that can automatically
serialize and deserialize resources for
JSON content type (MediaType).
|
org.codehaus.jackson.map |
Contains basic mapper (conversion) functionality that
allows for converting between regular streaming json content and
Java objects (beans or Tree Model: support for both is via
ObjectMapper class, as well
as convenience methods included in
JsonParser
Object mapper will convert Json content to ant from
basic Java wrapper types (Integer, Boolean, Double),
Collection types (List, Map), Java Beans,
Strings and nulls. |
org.codehaus.jackson.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
org.codehaus.jackson.smile |
Package that contains experimental implementation of
"Binary-Encoded JSON-Like" data format handlers (parser,
generator, factory produce both, supporting constants).
|
org.codehaus.jackson.util |
Utility classes used by Jackson Core functionality.
|
限定符和类型 | 方法和说明 |
---|---|
protected JsonParseException |
JsonParser._constructError(String msg)
Helper method for constructing
JsonParseException s
based on current state of the parser |
限定符和类型 | 方法和说明 |
---|---|
protected JsonParser |
JsonFactory._createJsonParser(byte[] data,
int offset,
int len,
IOContext ctxt)
Overridable factory method that actually instantiates parser
using given
Reader object for reading content
passed as raw byte array. |
protected JsonParser |
JsonFactory._createJsonParser(InputStream in,
IOContext ctxt)
Overridable factory method that actually instantiates desired parser
given
InputStream and context object. |
protected JsonParser |
JsonFactory._createJsonParser(Reader r,
IOContext ctxt)
Overridable factory method that actually instantiates parser
using given
Reader object for reading content. |
JsonParser |
JsonFactory.createJsonParser(byte[] data)
Method for constructing parser for parsing
the contents of given byte array.
|
JsonParser |
JsonFactory.createJsonParser(byte[] data,
int offset,
int len)
Method for constructing parser for parsing
the contents of given byte array.
|
JsonParser |
JsonFactory.createJsonParser(File f)
Method for constructing JSON parser instance to parse
contents of specified file.
|
JsonParser |
JsonFactory.createJsonParser(InputStream in)
Method for constructing JSON parser instance to parse
the contents accessed via specified input stream.
|
JsonParser |
JsonFactory.createJsonParser(Reader r)
Method for constructing parser for parsing
the contents accessed via specified Reader.
|
JsonParser |
JsonFactory.createJsonParser(String content)
Method for constructing parser for parsing
contens of given String.
|
JsonParser |
JsonFactory.createJsonParser(URL url)
Method for constructing JSON parser instance to parse
contents of resource reference by given URL.
|
abstract BigInteger |
JsonParser.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. |
byte[] |
JsonParser.getBinaryValue()
Convenience alternative to
JsonParser.getBinaryValue(Base64Variant)
that defaults to using
Base64Variants.getDefaultVariant() as the default encoding. |
abstract byte[] |
JsonParser.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.
|
boolean |
JsonParser.getBooleanValue()
Convenience accessor that can be called when the current
token is
JsonToken.VALUE_TRUE or
JsonToken.VALUE_FALSE . |
byte |
JsonParser.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. |
abstract String |
JsonParser.getCurrentName()
Method that can be called to get the name associated with
the current token: for
JsonToken.FIELD_NAME s it will
be the same as what JsonParser.getText() returns;
for field values it will be preceding field name;
and for others (array values, root-level values) null. |
abstract BigDecimal |
JsonParser.getDecimalValue()
Numeric accessor that can be called when the current
token is of type
JsonToken.VALUE_NUMBER_FLOAT or
JsonToken.VALUE_NUMBER_INT . |
abstract double |
JsonParser.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. |
Object |
JsonParser.getEmbeddedObject()
Accessor that can be called if (and only if) the current token
is
JsonToken.VALUE_EMBEDDED_OBJECT . |
abstract float |
JsonParser.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. |
abstract int |
JsonParser.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. |
abstract long |
JsonParser.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. |
abstract JsonParser.NumberType |
JsonParser.getNumberType()
If current token is of type
JsonToken.VALUE_NUMBER_INT or
JsonToken.VALUE_NUMBER_FLOAT , returns
one of JsonParser.NumberType constants; otherwise returns null. |
abstract Number |
JsonParser.getNumberValue()
Generic number value accessor method that will work for
all kinds of numeric values.
|
short |
JsonParser.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. |
abstract String |
JsonParser.getText()
Method for accessing textual representation of the current token;
if no current token (before first call to
JsonParser.nextToken() , or
after encountering end-of-input), returns null. |
abstract char[] |
JsonParser.getTextCharacters()
Method similar to
JsonParser.getText() , but that will return
underlying (unmodifiable) character array that contains
textual value, instead of constructing a String object
to contain this information. |
abstract int |
JsonParser.getTextLength()
Accessor used with
JsonParser.getTextCharacters() , to know length
of String stored in returned buffer. |
abstract int |
JsonParser.getTextOffset()
Accessor used with
JsonParser.getTextCharacters() , to know offset
of the first text content character within buffer. |
boolean |
JsonParser.getValueAsBoolean()
Method that will try to convert value of current token to a
boolean.
|
boolean |
JsonParser.getValueAsBoolean(boolean defaultValue)
Method that will try to convert value of current token to a
boolean.
|
double |
JsonParser.getValueAsDouble()
Method that will try to convert value of current token to a Java
double.
|
double |
JsonParser.getValueAsDouble(double defaultValue)
Method that will try to convert value of current token to a
Java double.
|
int |
JsonParser.getValueAsInt()
Method that will try to convert value of current token to a
int.
|
int |
JsonParser.getValueAsInt(int defaultValue)
Method that will try to convert value of current token to a
int.
|
long |
JsonParser.getValueAsLong()
Method that will try to convert value of current token to a
long.
|
long |
JsonParser.getValueAsLong(long defaultValue)
Method that will try to convert value of current token to a
long.
|
Boolean |
JsonParser.nextBooleanValue()
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
if it is JsonToken.VALUE_TRUE or JsonToken.VALUE_FALSE
returns matching Boolean value; otherwise return null. |
boolean |
JsonParser.nextFieldName(SerializableString str)
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
verifies whether it is JsonToken.FIELD_NAME with specified name
and returns result of that comparison. |
int |
JsonParser.nextIntValue(int defaultValue)
Method that fetches next token (as if calling
JsonParser.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) ? |
long |
JsonParser.nextLongValue(long defaultValue)
Method that fetches next token (as if calling
JsonParser.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) ? |
String |
JsonParser.nextTextValue()
Method that fetches next token (as if calling
JsonParser.nextToken() ) and
if it is JsonToken.VALUE_STRING returns contained String value;
otherwise returns null. |
abstract JsonToken |
JsonParser.nextToken()
Main iteration method, which will advance stream enough
to determine type of the next token, if any.
|
JsonToken |
JsonParser.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).
|
abstract JsonParser |
JsonParser.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 . |
限定符和类型 | 方法和说明 |
---|---|
protected JsonParseException |
JsonParserMinimalBase._constructError(String msg,
Throwable t) |
限定符和类型 | 方法和说明 |
---|---|
protected byte[] |
Utf8StreamParser._decodeBase64(Base64Variant b64variant)
Efficient handling for incremental parsing of base64-encoded
textual content.
|
protected byte[] |
ReaderBasedParser._decodeBase64(Base64Variant b64variant)
Efficient handling for incremental parsing of base64-encoded
textual content.
|
protected void |
JsonParserMinimalBase._decodeBase64(String str,
ByteArrayBuilder builder,
Base64Variant b64variant)
Helper method that can be used for base64 decoding in cases where
encoded content has already been read as a String.
|
protected int |
JsonParserBase._decodeBase64Escape(Base64Variant b64variant,
char ch,
int index) |
protected int |
JsonParserBase._decodeBase64Escape(Base64Variant b64variant,
int ch,
int index) |
protected int |
Utf8StreamParser._decodeCharForError(int firstByte) |
protected char |
Utf8StreamParser._decodeEscaped() |
protected char |
ReaderBasedParser._decodeEscaped() |
protected char |
JsonParserBase._decodeEscaped()
Method that sub-classes must implement to support escaped sequences
in base64-encoded sections.
|
protected void |
Utf8StreamParser._finishString() |
protected void |
ReaderBasedParser._finishString() |
protected abstract void |
JsonParserBase._finishString() |
protected void |
ReaderBasedParser._finishString2() |
protected JsonToken |
Utf8StreamParser._handleApostropheValue() |
protected JsonToken |
ReaderBasedParser._handleApostropheValue() |
protected abstract void |
JsonParserMinimalBase._handleEOF()
Method sub-classes need to implement
|
protected void |
JsonParserBase._handleEOF()
Method called when an EOF is encountered between tokens.
|
protected JsonToken |
Utf8StreamParser._handleInvalidNumberStart(int ch,
boolean negative)
Method called if expected numeric value (due to leading sign) does not
look like a number
|
protected JsonToken |
ReaderBasedParser._handleInvalidNumberStart(int ch,
boolean negative)
Method called if expected numeric value (due to leading sign) does not
look like a number
|
protected JsonToken |
Utf8StreamParser._handleUnexpectedValue(int c)
Method for handling cases where first non-space character
of an expected value token is not legal for standard JSON content.
|
protected JsonToken |
ReaderBasedParser._handleUnexpectedValue(int i)
Method for handling cases where first non-space character
of an expected value token is not legal for standard JSON content.
|
protected Name |
Utf8StreamParser._handleUnusualFieldName(int ch)
Method called when we see non-white space character other
than double quote, when expecting a field name.
|
protected String |
ReaderBasedParser._handleUnusualFieldName(int i)
Method called when we see non-white space character other
than double quote, when expecting a field name.
|
protected void |
Utf8StreamParser._matchToken(String matchStr,
int i) |
protected boolean |
ReaderBasedParserBase._matchToken(String matchStr,
int i)
已过时。
Helper method for checking whether input matches expected token
|
protected void |
ReaderBasedParser._matchToken(String matchStr,
int i)
Helper method for checking whether input matches expected token
|
protected Name |
Utf8StreamParser._parseApostropheFieldName() |
protected String |
ReaderBasedParser._parseApostropheFieldName() |
protected Name |
Utf8StreamParser._parseFieldName(int i) |
protected String |
ReaderBasedParser._parseFieldName(int i) |
protected void |
JsonParserBase._parseNumericValue(int expType)
Method that will parse actual numeric value out of a syntactically
valid number value.
|
protected void |
JsonParserMinimalBase._reportBase64EOF() |
protected void |
JsonParserMinimalBase._reportError(String msg) |
protected void |
JsonParserMinimalBase._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
String msg) |
protected void |
Utf8StreamParser._reportInvalidChar(int c) |
protected void |
JsonParserMinimalBase._reportInvalidEOF() |
protected void |
JsonParserMinimalBase._reportInvalidEOF(String msg) |
protected void |
JsonParserMinimalBase._reportInvalidEOFInValue() |
protected void |
Utf8StreamParser._reportInvalidInitial(int mask) |
protected void |
Utf8StreamParser._reportInvalidOther(int mask) |
protected void |
Utf8StreamParser._reportInvalidOther(int mask,
int ptr) |
protected void |
Utf8StreamParser._reportInvalidToken(String matchedPart,
String msg) |
protected void |
ReaderBasedParserBase._reportInvalidToken(String matchedPart,
String msg)
已过时。
|
protected void |
ReaderBasedParser._reportInvalidToken(String matchedPart,
String msg) |
protected void |
JsonParserBase._reportMismatchedEndMarker(int actCh,
char expCh) |
protected void |
JsonParserMinimalBase._reportUnexpectedChar(int ch,
String comment) |
protected void |
Utf8StreamParser._skipString()
Method called to skim through rest of unparsed String value,
if it is not needed.
|
protected void |
ReaderBasedParser._skipString()
Method called to skim through rest of unparsed String value,
if it is not needed.
|
protected void |
JsonParserMinimalBase._throwInvalidSpace(int i) |
protected void |
JsonParserMinimalBase._throwUnquotedSpace(int i,
String ctxtDesc)
Method called to report a problem with unquoted control character.
|
protected void |
JsonParserMinimalBase._wrapError(String msg,
Throwable t) |
JsonParser |
ByteSourceBootstrapper.constructParser(int features,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols,
CharsToNameCanonicalizer rootCharSymbols) |
protected void |
JsonParserBase.convertNumberToBigDecimal() |
protected void |
JsonParserBase.convertNumberToBigInteger() |
protected void |
JsonParserBase.convertNumberToDouble() |
protected void |
JsonParserBase.convertNumberToInt() |
protected void |
JsonParserBase.convertNumberToLong() |
JsonEncoding |
ByteSourceBootstrapper.detectEncoding()
Method that should be called after constructing an instace.
|
BigInteger |
JsonParserBase.getBigIntegerValue() |
byte[] |
Utf8StreamParser.getBinaryValue(Base64Variant b64variant) |
byte[] |
ReaderBasedParser.getBinaryValue(Base64Variant b64variant) |
abstract byte[] |
JsonParserMinimalBase.getBinaryValue(Base64Variant b64variant) |
abstract String |
JsonParserMinimalBase.getCurrentName() |
String |
JsonParserBase.getCurrentName()
Method that can be called to get the name associated with
the current event.
|
BigDecimal |
JsonParserBase.getDecimalValue() |
double |
JsonParserBase.getDoubleValue() |
float |
JsonParserBase.getFloatValue() |
int |
JsonParserBase.getIntValue() |
long |
JsonParserBase.getLongValue() |
protected char |
ReaderBasedParserBase.getNextChar(String eofMsg)
已过时。
|
protected char |
ReaderBasedParser.getNextChar(String eofMsg) |
JsonParser.NumberType |
JsonParserBase.getNumberType() |
Number |
JsonParserBase.getNumberValue() |
String |
Utf8StreamParser.getText() |
String |
ReaderBasedParser.getText()
Method for accessing textual representation of the current event;
if no current event (before first call to
ReaderBasedParser.nextToken() , or
after encountering end-of-input), returns null. |
abstract String |
JsonParserMinimalBase.getText() |
char[] |
Utf8StreamParser.getTextCharacters() |
char[] |
ReaderBasedParser.getTextCharacters() |
abstract char[] |
JsonParserMinimalBase.getTextCharacters() |
int |
Utf8StreamParser.getTextLength() |
int |
ReaderBasedParser.getTextLength() |
abstract int |
JsonParserMinimalBase.getTextLength() |
int |
Utf8StreamParser.getTextOffset() |
int |
ReaderBasedParser.getTextOffset() |
abstract int |
JsonParserMinimalBase.getTextOffset() |
boolean |
JsonParserMinimalBase.getValueAsBoolean(boolean defaultValue) |
double |
JsonParserMinimalBase.getValueAsDouble(double defaultValue) |
int |
JsonParserMinimalBase.getValueAsInt(int defaultValue) |
long |
JsonParserMinimalBase.getValueAsLong(long defaultValue) |
Boolean |
Utf8StreamParser.nextBooleanValue() |
Boolean |
ReaderBasedParser.nextBooleanValue() |
boolean |
Utf8StreamParser.nextFieldName(SerializableString str) |
int |
Utf8StreamParser.nextIntValue(int defaultValue) |
int |
ReaderBasedParser.nextIntValue(int defaultValue) |
long |
Utf8StreamParser.nextLongValue(long defaultValue) |
long |
ReaderBasedParser.nextLongValue(long defaultValue) |
String |
Utf8StreamParser.nextTextValue() |
String |
ReaderBasedParser.nextTextValue() |
JsonToken |
Utf8StreamParser.nextToken() |
JsonToken |
ReaderBasedParser.nextToken() |
abstract JsonToken |
JsonParserMinimalBase.nextToken() |
protected Name |
Utf8StreamParser.parseEscapedFieldName(int[] quads,
int qlen,
int currQuad,
int ch,
int currQuadBytes)
Slower parsing method which is generally branched to when
an escape sequence is detected (or alternatively for long
names, or ones crossing input buffer boundary).
|
protected Name |
Utf8StreamParser.parseLongFieldName(int q) |
protected Name |
Utf8StreamParser.parseMediumFieldName(int q2,
int[] codes) |
protected JsonToken |
Utf8StreamParser.parseNumberText(int c)
Initial parsing method for number values.
|
protected JsonToken |
ReaderBasedParser.parseNumberText(int ch)
Initial parsing method for number values.
|
protected void |
JsonParserBase.reportInvalidNumber(String msg) |
protected void |
JsonParserBase.reportOverflowInt() |
protected void |
JsonParserBase.reportOverflowLong() |
protected void |
JsonParserBase.reportUnexpectedNumberChar(int ch,
String comment) |
JsonParser |
JsonParserMinimalBase.skipChildren() |
protected Name |
Utf8StreamParser.slowParseFieldName()
Method called when not even first 8 bytes are guaranteed
to come consequtively.
|
限定符和类型 | 方法和说明 |
---|---|
Response |
JsonParseExceptionMapper.toResponse(JsonParseException exception) |
限定符和类型 | 方法和说明 |
---|---|
protected Object |
ObjectReader._bind(JsonParser jp)
Actual implementation of value reading+binding operation.
|
protected Object |
ObjectReader._bindAndClose(JsonParser jp) |
protected JsonNode |
ObjectReader._bindAndCloseAsTree(JsonParser jp) |
protected JsonNode |
ObjectReader._bindAsTree(JsonParser jp) |
protected static JsonToken |
ObjectReader._initForReading(JsonParser jp) |
protected JsonToken |
ObjectMapper._initForReading(JsonParser jp)
Method called to ensure that given parser is ready for reading
content for data binding.
|
protected Object |
ObjectMapper._readMapAndClose(JsonParser jp,
JavaType valueType) |
protected Object |
ObjectMapper._readValue(DeserializationConfig cfg,
JsonParser jp,
JavaType valueType)
Actual implementation of value reading+binding operation.
|
protected Object |
ObjectReader._unwrapAndDeserialize(JsonParser jp,
DeserializationContext ctxt,
JavaType rootType,
JsonDeserializer<Object> deser) |
protected Object |
ObjectMapper._unwrapAndDeserialize(JsonParser jp,
JavaType rootType,
DeserializationContext ctxt,
JsonDeserializer<Object> deser) |
<T> T |
ObjectMapper.readValue(byte[] src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
int offset,
int len,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(byte[] src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(byte[] src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(File src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(File src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(File src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(InputStream src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(InputStream src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(JsonNode root,
Class<T> valueType)
Convenience method for converting results from given JSON tree into given
value type.
|
<T> T |
ObjectMapper.readValue(JsonNode root,
JavaType valueType)
Convenience method for converting results from given JSON tree into given
value type.
|
<T> T |
ObjectMapper.readValue(JsonNode root,
TypeReference valueTypeRef)
Convenience method for converting results from given JSON tree into given
value type.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
Class<T> valueType)
Method to deserialize JSON content into a non-container
type (it can be an array type, however): typically a bean, array
or a wrapper type (like
Boolean ). |
<T> T |
ObjectMapper.readValue(JsonParser jp,
Class<T> valueType,
DeserializationConfig cfg)
Method to deserialize JSON content into a non-container
type (it can be an array type, however): typically a bean, array
or a wrapper type (like
Boolean ). |
<T> T |
ObjectMapper.readValue(JsonParser jp,
JavaType valueType)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
JavaType valueType,
DeserializationConfig cfg)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
TypeReference<?> valueTypeRef)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(JsonParser jp,
TypeReference<?> valueTypeRef,
DeserializationConfig cfg)
Method to deserialize JSON content into a Java type, reference
to which is passed as argument.
|
<T> T |
ObjectMapper.readValue(Reader src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(Reader src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(Reader src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(String content,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(String content,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(String content,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.readValue(URL src,
Class<T> valueType) |
<T> T |
ObjectMapper.readValue(URL src,
JavaType valueType) |
<T> T |
ObjectMapper.readValue(URL src,
TypeReference valueTypeRef) |
<T> T |
ObjectMapper.treeToValue(JsonNode n,
Class<T> valueType)
Convenience conversion method that will bind data given JSON tree
contains into specific value (usually bean) type.
|
限定符和类型 | 方法和说明 |
---|---|
protected void |
TreeTraversingParser._handleEOF() |
protected void |
TextNode._reportBase64EOF() |
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex) |
protected void |
TextNode._reportInvalidBase64(Base64Variant b64variant,
char ch,
int bindex,
String msg) |
protected JsonNode |
TreeTraversingParser.currentNumericNode() |
BigInteger |
TreeTraversingParser.getBigIntegerValue() |
byte[] |
TreeTraversingParser.getBinaryValue(Base64Variant b64variant) |
BigDecimal |
TreeTraversingParser.getDecimalValue() |
double |
TreeTraversingParser.getDoubleValue() |
float |
TreeTraversingParser.getFloatValue() |
int |
TreeTraversingParser.getIntValue() |
long |
TreeTraversingParser.getLongValue() |
JsonParser.NumberType |
TreeTraversingParser.getNumberType() |
Number |
TreeTraversingParser.getNumberValue() |
char[] |
TreeTraversingParser.getTextCharacters() |
int |
TreeTraversingParser.getTextLength() |
int |
TreeTraversingParser.getTextOffset() |
JsonToken |
TreeTraversingParser.nextToken() |
JsonParser |
TreeTraversingParser.skipChildren() |
限定符和类型 | 方法和说明 |
---|---|
protected SmileParser |
SmileFactory._createJsonParser(byte[] data,
int offset,
int len,
IOContext ctxt)
Overridable factory method that actually instantiates desired
parser.
|
protected SmileParser |
SmileFactory._createJsonParser(InputStream in,
IOContext ctxt)
Overridable factory method that actually instantiates desired
parser.
|
protected JsonParser |
SmileFactory._createJsonParser(Reader r,
IOContext ctxt)
Overridable factory method that actually instantiates desired
parser.
|
protected byte[] |
SmileParser._decodeBase64(Base64Variant b64variant) |
protected void |
SmileParser._decodeShortAsciiValue(int len) |
protected void |
SmileParser._decodeShortUnicodeValue(int len) |
protected void |
SmileParser._finishNumberToken(int tb) |
protected void |
SmileParser._finishString() |
protected void |
SmileParser._finishToken()
Method called to finish parsing of a token so that token contents
are retriable
|
protected JsonToken |
SmileParser._handleFieldName()
Method that handles initial token type recognition for token
that has to be either FIELD_NAME or END_OBJECT.
|
protected void |
SmileParser._parseNumericValue(int expType) |
protected void |
SmileParser._reportInvalidChar(int c) |
protected void |
SmileParser._reportInvalidInitial(int mask) |
protected void |
SmileParser._reportInvalidOther(int mask) |
protected void |
SmileParser._reportInvalidOther(int mask,
int ptr) |
protected void |
SmileParser._skip7BitBinary()
Helper method for skipping length-prefixed binary data
section
|
protected void |
SmileParser._skipBytes(int len) |
protected void |
SmileParser._skipIncomplete()
Method called to skip remainders of an incomplete token, when
contents themselves will not be needed any more
|
SmileParser |
SmileParserBootstrapper.constructParser(int generalParserFeatures,
int smileFeatures,
ObjectCodec codec,
BytesToNameCanonicalizer rootByteSymbols) |
SmileParser |
SmileFactory.createJsonParser(byte[] data) |
SmileParser |
SmileFactory.createJsonParser(byte[] data,
int offset,
int len) |
SmileParser |
SmileFactory.createJsonParser(File f) |
SmileParser |
SmileFactory.createJsonParser(InputStream in) |
SmileParser |
SmileFactory.createJsonParser(URL url) |
byte[] |
SmileParser.getBinaryValue(Base64Variant b64variant) |
String |
SmileParser.getCurrentName() |
Object |
SmileParser.getEmbeddedObject() |
JsonParser.NumberType |
SmileParser.getNumberType() |
String |
SmileParser.getText()
Method for accessing textual representation of the current event;
if no current event (before first call to
SmileParser.nextToken() , or
after encountering end-of-input), returns null. |
char[] |
SmileParser.getTextCharacters() |
int |
SmileParser.getTextLength() |
int |
SmileParser.getTextOffset() |
protected boolean |
SmileParser.handleSignature(boolean consumeFirstByte,
boolean throwException)
Helper method called when it looks like input might contain the signature;
and it is necessary to detect and handle signature to get configuration
information it might have.
|
Boolean |
SmileParser.nextBooleanValue() |
boolean |
SmileParser.nextFieldName(SerializableString str) |
int |
SmileParser.nextIntValue(int defaultValue) |
long |
SmileParser.nextLongValue(long defaultValue) |
String |
SmileParser.nextTextValue() |
JsonToken |
SmileParser.nextToken() |
限定符和类型 | 方法和说明 |
---|---|
protected void |
TokenBuffer.Parser._checkIsNumber() |
protected void |
TokenBuffer.Parser._handleEOF() |
BigInteger |
TokenBuffer.Parser.getBigIntegerValue() |
BigInteger |
JsonParserDelegate.getBigIntegerValue() |
byte[] |
TokenBuffer.Parser.getBinaryValue(Base64Variant b64variant) |
byte[] |
JsonParserDelegate.getBinaryValue(Base64Variant b64variant) |
boolean |
JsonParserDelegate.getBooleanValue() |
byte |
JsonParserDelegate.getByteValue() |
String |
JsonParserDelegate.getCurrentName() |
BigDecimal |
TokenBuffer.Parser.getDecimalValue() |
BigDecimal |
JsonParserDelegate.getDecimalValue() |
double |
TokenBuffer.Parser.getDoubleValue() |
double |
JsonParserDelegate.getDoubleValue() |
Object |
JsonParserDelegate.getEmbeddedObject() |
float |
TokenBuffer.Parser.getFloatValue() |
float |
JsonParserDelegate.getFloatValue() |
int |
TokenBuffer.Parser.getIntValue() |
int |
JsonParserDelegate.getIntValue() |
long |
TokenBuffer.Parser.getLongValue() |
long |
JsonParserDelegate.getLongValue() |
JsonParser.NumberType |
TokenBuffer.Parser.getNumberType() |
JsonParser.NumberType |
JsonParserDelegate.getNumberType() |
Number |
TokenBuffer.Parser.getNumberValue() |
Number |
JsonParserDelegate.getNumberValue() |
short |
JsonParserDelegate.getShortValue() |
String |
JsonParserDelegate.getText() |
char[] |
JsonParserDelegate.getTextCharacters() |
int |
JsonParserDelegate.getTextLength() |
int |
JsonParserDelegate.getTextOffset() |
JsonToken |
TokenBuffer.Parser.nextToken() |
JsonToken |
JsonParserSequence.nextToken() |
JsonToken |
JsonParserDelegate.nextToken() |
JsonToken |
TokenBuffer.Parser.peekNextToken() |
JsonParser |
JsonParserDelegate.skipChildren() |