程序包 | 说明 |
---|---|
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.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.map.deser |
Contains implementation classes of deserialization part of
data binding.
|
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 JsonToken |
JsonParser._currToken
Last token retrieved via
JsonParser.nextToken() , if any. |
protected JsonToken |
JsonParser._lastClearedToken
Last cleared token, if any: that is, value that was in
effect when
JsonParser.clearCurrentToken() was called. |
限定符和类型 | 方法和说明 |
---|---|
abstract JsonToken |
JsonNode.asToken()
Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
|
JsonToken |
JsonParser.getCurrentToken()
Accessor to find which token parser currently points to, if any;
null will be returned if none.
|
JsonToken |
JsonParser.getLastClearedToken()
Method that can be called to get the last token that was
cleared using
JsonParser.clearCurrentToken() . |
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).
|
static JsonToken |
JsonToken.valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static JsonToken[] |
JsonToken.values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
限定符和类型 | 字段和说明 |
---|---|
protected JsonToken |
JsonParserBase._nextToken
Secondary token related to the next token after current one;
used if its type is known.
|
限定符和类型 | 方法和说明 |
---|---|
protected JsonToken |
Utf8StreamParser._handleApostropheValue() |
protected JsonToken |
ReaderBasedParser._handleApostropheValue() |
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.
|
JsonToken |
Utf8StreamParser.nextToken() |
JsonToken |
ReaderBasedParser.nextToken() |
abstract JsonToken |
JsonParserMinimalBase.nextToken() |
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 JsonToken |
JsonParserBase.reset(boolean negative,
int intLen,
int fractLen,
int expLen) |
protected JsonToken |
JsonParserBase.resetAsNaN(String valueStr,
double value) |
protected JsonToken |
JsonParserBase.resetFloat(boolean negative,
int intLen,
int fractLen,
int expLen) |
protected JsonToken |
JsonParserBase.resetInt(boolean negative,
int intLen) |
限定符和类型 | 方法和说明 |
---|---|
protected String |
Utf8StreamParser._getText2(JsonToken t) |
protected String |
ReaderBasedParser._getText2(JsonToken t) |
限定符和类型 | 方法和说明 |
---|---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
abstract JsonMappingException |
DeserializationContext.mappingException(Class<?> targetClass,
JsonToken t) |
abstract JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser jp,
JsonToken expToken,
String msg)
Helper method for indicating that the current token was expected to be another
token.
|
限定符和类型 | 方法和说明 |
---|---|
JsonMappingException |
StdDeserializationContext.mappingException(Class<?> targetClass,
JsonToken token) |
JsonMappingException |
StdDeserializationContext.wrongTokenException(JsonParser jp,
JsonToken expToken,
String msg) |
限定符和类型 | 字段和说明 |
---|---|
protected JsonToken |
TreeTraversingParser._nextToken
Sometimes parser needs to buffer a single look-ahead token; if so,
it'll be stored here.
|
限定符和类型 | 方法和说明 |
---|---|
abstract JsonToken |
ValueNode.asToken() |
JsonToken |
TextNode.asToken() |
JsonToken |
POJONode.asToken() |
JsonToken |
ObjectNode.asToken() |
JsonToken |
NullNode.asToken() |
JsonToken |
MissingNode.asToken() |
JsonToken |
LongNode.asToken() |
JsonToken |
IntNode.asToken() |
JsonToken |
DoubleNode.asToken() |
JsonToken |
DecimalNode.asToken() |
abstract JsonToken |
ContainerNode.asToken() |
JsonToken |
BooleanNode.asToken() |
JsonToken |
BinaryNode.asToken() |
JsonToken |
BigIntegerNode.asToken() |
abstract JsonToken |
BaseJsonNode.asToken()
Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
|
JsonToken |
ArrayNode.asToken() |
JsonToken |
TreeTraversingParser.nextToken() |
限定符和类型 | 方法和说明 |
---|---|
protected JsonToken |
SmileParser._handleFieldName()
Method that handles initial token type recognition for token
that has to be either FIELD_NAME or END_OBJECT.
|
JsonToken |
SmileParser.nextToken() |
限定符和类型 | 方法和说明 |
---|---|
JsonToken |
JsonParserDelegate.getCurrentToken() |
JsonToken |
JsonParserDelegate.getLastClearedToken() |
JsonToken |
TokenBuffer.Parser.nextToken() |
JsonToken |
JsonParserSequence.nextToken() |
JsonToken |
JsonParserDelegate.nextToken() |
JsonToken |
TokenBuffer.Parser.peekNextToken() |
JsonToken |
TokenBuffer.Segment.type(int index) |
限定符和类型 | 方法和说明 |
---|---|
protected void |
TokenBuffer._append(JsonToken type) |
protected void |
TokenBuffer._append(JsonToken type,
Object value) |
TokenBuffer.Segment |
TokenBuffer.Segment.append(int index,
JsonToken tokenType) |
TokenBuffer.Segment |
TokenBuffer.Segment.append(int index,
JsonToken tokenType,
Object value) |
void |
TokenBuffer.Segment.set(int index,
JsonToken tokenType) |
void |
TokenBuffer.Segment.set(int index,
JsonToken tokenType,
Object value) |