Package | Description |
---|---|
com.fasterxml.jackson.core |
Main public API classes of the core streaming JSON
processor: most importantly
JsonFactory
used for constructing
JSON parser (JsonParser )
and generator
(JsonGenerator )
instances. |
com.fasterxml.jackson.core.base |
Base classes used by concrete Parser and Generator implementations;
contain functionality that is not specific to JSON or input
abstraction (byte vs char).
|
com.fasterxml.jackson.core.exc |
Package for some of
JsonProcessingException
subtypes contained by streaming API. |
com.fasterxml.jackson.core.filter | |
com.fasterxml.jackson.core.io | |
com.fasterxml.jackson.core.json |
JSON-specific parser and generator implementation classes that
Jackson defines and uses.
|
com.fasterxml.jackson.core.json.async |
Non-blocking ("async") JSON parser implementation.
|
com.fasterxml.jackson.core.type |
Contains classes needed for type introspection, mostly used by data binding
functionality.
|
com.fasterxml.jackson.core.util |
Utility classes used by Jackson Core functionality.
|
com.fasterxml.jackson.databind |
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode ), as well as
writing Java Objects and trees as JSON. |
com.fasterxml.jackson.databind.deser |
Contains implementation classes of deserialization part of
data binding.
|
com.fasterxml.jackson.databind.deser.std |
Contains public standard implementations of abstraction that
Jackson uses.
|
com.fasterxml.jackson.databind.jsontype |
Package that contains interfaces that define how to implement
functionality for dynamically resolving type during deserialization.
|
com.fasterxml.jackson.databind.node |
Contains concrete
JsonNode implementations
Jackson uses for the Tree model. |
com.fasterxml.jackson.databind.ser.std | |
com.fasterxml.jackson.databind.util |
Utility classes for Mapper package.
|
com.fasterxml.jackson.datatype.jsr310.ser |
Modifier and Type | Method and Description |
---|---|
JsonToken |
TreeNode.asToken()
Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
|
JsonToken |
JsonParser.currentToken()
Accessor to find which token parser currently points to, if any;
null will be returned if none.
|
abstract JsonToken |
JsonParser.getCurrentToken()
Alias for
JsonParser.currentToken() , may be deprecated sometime after
Jackson 2.12 (will be removed from 3.0). |
abstract 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.
|
abstract 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)
Returns the enum constant of this type with the specified name.
|
static JsonToken[] |
JsonToken.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
abstract boolean |
JsonParser.hasToken(JsonToken t)
Method that is functionally equivalent to:
return currentToken() == t
but may be more efficiently implemented. |
Modifier and Type | Field and Description |
---|---|
protected JsonToken |
ParserMinimalBase._currToken
Last token retrieved via
ParserMinimalBase.nextToken() , if any. |
protected JsonToken |
ParserMinimalBase._lastClearedToken
Last cleared token, if any: that is, value that was in
effect when
ParserMinimalBase.clearCurrentToken() was called. |
protected JsonToken |
ParserBase._nextToken
Secondary token related to the next token after current one;
used if its type is known.
|
Modifier and Type | Method and Description |
---|---|
JsonToken |
ParserMinimalBase.currentToken() |
JsonToken |
ParserMinimalBase.getCurrentToken() |
JsonToken |
ParserMinimalBase.getLastClearedToken() |
abstract JsonToken |
ParserMinimalBase.nextToken() |
JsonToken |
ParserMinimalBase.nextValue() |
protected JsonToken |
ParserBase.reset(boolean negative,
int intLen,
int fractLen,
int expLen) |
protected JsonToken |
ParserBase.resetAsNaN(String valueStr,
double value) |
protected JsonToken |
ParserBase.resetFloat(boolean negative,
int intLen,
int fractLen,
int expLen) |
protected JsonToken |
ParserBase.resetInt(boolean negative,
int intLen) |
Modifier and Type | Method and Description |
---|---|
protected void |
ParserMinimalBase._reportInputCoercion(String msg,
JsonToken inputType,
Class<?> targetType) |
protected void |
ParserMinimalBase._reportInvalidEOF(String msg,
JsonToken currToken) |
protected void |
ParserMinimalBase._reportInvalidEOFInValue(JsonToken type) |
boolean |
ParserMinimalBase.hasToken(JsonToken t) |
protected void |
ParserMinimalBase.reportOverflowInt(String numDesc,
JsonToken inputType) |
protected void |
ParserMinimalBase.reportOverflowLong(String numDesc,
JsonToken inputType) |
Modifier and Type | Field and Description |
---|---|
protected JsonToken |
InputCoercionException._inputType
Input token that represents input value that failed to coerce.
|
Modifier and Type | Method and Description |
---|---|
JsonToken |
InputCoercionException.getInputType()
Accessor for getting information about input type (in form of token, giving "shape"
of input) for which coercion failed.
|
Constructor and Description |
---|
InputCoercionException(JsonParser p,
String msg,
JsonToken inputType,
Class<?> targetType)
Constructor that uses current parsing location as location, and
sets processor (accessible via
StreamReadException.getProcessor() ) to
specified parser. |
Modifier and Type | Field and Description |
---|---|
protected JsonToken |
FilteringParserDelegate._currToken
Last token retrieved via
FilteringParserDelegate.nextToken() , if any. |
protected JsonToken |
FilteringParserDelegate._lastClearedToken
Last cleared token, if any: that is, value that was in
effect when
FilteringParserDelegate.clearCurrentToken() was called. |
Modifier and Type | Method and Description |
---|---|
protected JsonToken |
FilteringParserDelegate._nextToken2()
Offlined handling for cases where there was no buffered token to
return, and the token read next could not be returned as-is,
at least not yet, but where we have not yet established that
buffering is needed.
|
protected JsonToken |
FilteringParserDelegate._nextTokenWithBuffering(TokenFilterContext buffRoot)
Method called when a new potentially included context is found.
|
JsonToken |
FilteringParserDelegate.currentToken() |
JsonToken |
FilteringParserDelegate.getCurrentToken() |
JsonToken |
FilteringParserDelegate.getLastClearedToken() |
JsonToken |
FilteringParserDelegate.nextToken() |
JsonToken |
TokenFilterContext.nextTokenToRead() |
JsonToken |
FilteringParserDelegate.nextValue() |
Modifier and Type | Method and Description |
---|---|
boolean |
FilteringParserDelegate.hasToken(JsonToken t) |
Modifier and Type | Field and Description |
---|---|
protected JsonToken |
JsonEOFException._token
Type of token that was being decoded, if parser had enough information
to recognize type (such as starting double-quote for Strings)
|
Modifier and Type | Method and Description |
---|---|
JsonToken |
JsonEOFException.getTokenBeingDecoded()
Accessor for possibly available information about token that was being
decoded while encountering end of input.
|
Constructor and Description |
---|
JsonEOFException(JsonParser p,
JsonToken token,
String msg) |
Modifier and Type | Method and Description |
---|---|
protected JsonToken |
ReaderBasedJsonParser._handleApos() |
protected JsonToken |
UTF8DataInputJsonParser._handleApos() |
protected JsonToken |
UTF8StreamJsonParser._handleApos() |
protected JsonToken |
ReaderBasedJsonParser._handleInvalidNumberStart(int ch,
boolean negative)
Method called if expected numeric value (due to leading sign) does not
look like a number
|
protected JsonToken |
UTF8DataInputJsonParser._handleInvalidNumberStart(int ch,
boolean neg)
Method called if expected numeric value (due to leading sign) does not
look like a number
|
protected JsonToken |
UTF8StreamJsonParser._handleInvalidNumberStart(int ch,
boolean neg)
Method called if expected numeric value (due to leading sign) does not
look like a number
|
protected JsonToken |
ReaderBasedJsonParser._handleOddValue(int i)
Method for handling cases where first non-space character
of an expected value token is not legal for standard JSON content.
|
protected JsonToken |
UTF8DataInputJsonParser._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 |
UTF8StreamJsonParser._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 |
ReaderBasedJsonParser._parseFloatThatStartsWithPeriod() |
protected JsonToken |
UTF8DataInputJsonParser._parseFloatThatStartsWithPeriod() |
protected JsonToken |
UTF8StreamJsonParser._parseFloatThatStartsWithPeriod() |
protected JsonToken |
ReaderBasedJsonParser._parseNegNumber() |
protected JsonToken |
UTF8DataInputJsonParser._parseNegNumber() |
protected JsonToken |
UTF8StreamJsonParser._parseNegNumber() |
protected JsonToken |
ReaderBasedJsonParser._parsePosNumber(int ch)
Initial parsing method for number values.
|
protected JsonToken |
UTF8DataInputJsonParser._parsePosNumber(int c)
Initial parsing method for number values.
|
protected JsonToken |
UTF8StreamJsonParser._parsePosNumber(int c)
Initial parsing method for number values.
|
JsonToken |
ReaderBasedJsonParser.nextToken() |
JsonToken |
UTF8DataInputJsonParser.nextToken() |
JsonToken |
UTF8StreamJsonParser.nextToken() |
Modifier and Type | Method and Description |
---|---|
protected String |
ReaderBasedJsonParser._getText2(JsonToken t) |
protected String |
UTF8DataInputJsonParser._getText2(JsonToken t) |
protected String |
UTF8StreamJsonParser._getText2(JsonToken t) |
protected char |
ReaderBasedJsonParser.getNextChar(String eofMsg,
JsonToken forToken) |
Modifier and Type | Method and Description |
---|---|
protected JsonToken |
NonBlockingJsonParserBase._closeArrayScope() |
protected JsonToken |
NonBlockingJsonParserBase._closeObjectScope() |
protected JsonToken |
NonBlockingJsonParserBase._eofAsNextToken()
Helper method called at point when all input has been exhausted and
input feeder has indicated no more input will be forthcoming.
|
protected JsonToken |
NonBlockingJsonParserBase._fieldComplete(String name) |
protected JsonToken |
NonBlockingJsonParser._finishErrorToken() |
protected JsonToken |
NonBlockingJsonParser._finishErrorTokenWithEOF() |
protected JsonToken |
NonBlockingJsonParser._finishFieldWithEscape() |
protected JsonToken |
NonBlockingJsonParser._finishFloatExponent(boolean checkSign,
int ch) |
protected JsonToken |
NonBlockingJsonParser._finishFloatFraction() |
protected JsonToken |
NonBlockingJsonParser._finishKeywordToken(String expToken,
int matched,
JsonToken result) |
protected JsonToken |
NonBlockingJsonParser._finishKeywordTokenWithEOF(String expToken,
int matched,
JsonToken result) |
protected JsonToken |
NonBlockingJsonParser._finishNonStdToken(int type,
int matched) |
protected JsonToken |
NonBlockingJsonParser._finishNonStdTokenWithEOF(int type,
int matched) |
protected JsonToken |
NonBlockingJsonParser._finishNumberIntegralPart(char[] outBuf,
int outPtr) |
protected JsonToken |
NonBlockingJsonParser._finishNumberLeadingNegZeroes() |
protected JsonToken |
NonBlockingJsonParser._finishNumberLeadingZeroes() |
protected JsonToken |
NonBlockingJsonParser._finishNumberMinus(int ch) |
protected JsonToken |
NonBlockingJsonParser._finishToken()
Method called when decoding of a token has been started, but not yet completed due
to missing input; method is to continue decoding due to at least one more byte
being made available to decode.
|
protected JsonToken |
NonBlockingJsonParser._finishTokenWithEOF()
Method similar to
NonBlockingJsonParser._finishToken() , but called when no more input is
available, and end-of-input has been detected. |
protected JsonToken |
NonBlockingJsonParser._reportErrorToken(String actualToken) |
protected JsonToken |
NonBlockingJsonParser._startAposString() |
protected JsonToken |
NonBlockingJsonParserBase._startArrayScope() |
protected JsonToken |
NonBlockingJsonParser._startFalseToken() |
protected JsonToken |
NonBlockingJsonParser._startFloat(char[] outBuf,
int outPtr,
int ch) |
protected JsonToken |
NonBlockingJsonParser._startFloatThatStartsWithPeriod() |
protected JsonToken |
NonBlockingJsonParser._startNegativeNumber() |
protected JsonToken |
NonBlockingJsonParser._startNullToken() |
protected JsonToken |
NonBlockingJsonParser._startNumberLeadingZero() |
protected JsonToken |
NonBlockingJsonParserBase._startObjectScope() |
protected JsonToken |
NonBlockingJsonParser._startPositiveNumber(int ch) |
protected JsonToken |
NonBlockingJsonParser._startString() |
protected JsonToken |
NonBlockingJsonParser._startTrueToken() |
protected JsonToken |
NonBlockingJsonParser._startUnexpectedValue(boolean leadingComma,
int ch) |
protected JsonToken |
NonBlockingJsonParserBase._valueComplete(JsonToken t) |
protected JsonToken |
NonBlockingJsonParserBase._valueCompleteInt(int value,
String asText) |
protected JsonToken |
NonBlockingJsonParserBase._valueNonStdNumberComplete(int type) |
JsonToken |
NonBlockingJsonParser.nextToken() |
Modifier and Type | Method and Description |
---|---|
protected JsonToken |
NonBlockingJsonParser._finishKeywordToken(String expToken,
int matched,
JsonToken result) |
protected JsonToken |
NonBlockingJsonParser._finishKeywordTokenWithEOF(String expToken,
int matched,
JsonToken result) |
protected String |
NonBlockingJsonParserBase._getText2(JsonToken t) |
protected JsonToken |
NonBlockingJsonParserBase._valueComplete(JsonToken t) |
Modifier and Type | Field and Description |
---|---|
JsonToken |
WritableTypeId.valueShape
Information about intended shape of the value being written (that is,
WritableTypeId.forValue );
in case of structured values, start token of the structure; for scalars, value token. |
Constructor and Description |
---|
WritableTypeId(Object value,
Class<?> valueType0,
JsonToken valueShape0)
Constructor used when calling a method for generating and writing Type Id,
but where actual type to use for generating id is NOT the type of value
(but its supertype).
|
WritableTypeId(Object value,
JsonToken valueShape0)
Constructor used when calling a method for generating and writing Type Id;
caller only knows value object and its intended shape.
|
WritableTypeId(Object value,
JsonToken valueShape0,
Object id0)
Constructor used when calling a method for writing Type Id;
caller knows value object, its intended shape as well as id to
use; but not details of wrapping (if any).
|
Modifier and Type | Method and Description |
---|---|
JsonToken |
JsonParserDelegate.currentToken() |
JsonToken |
JsonParserDelegate.getCurrentToken() |
JsonToken |
JsonParserDelegate.getLastClearedToken() |
JsonToken |
JsonParserDelegate.nextToken() |
JsonToken |
JsonParserSequence.nextToken() |
JsonToken |
JsonParserDelegate.nextValue() |
protected JsonToken |
JsonParserSequence.switchAndReturnNext() |
Modifier and Type | Method and Description |
---|---|
boolean |
JsonParserDelegate.hasToken(JsonToken t) |
Modifier and Type | Method and Description |
---|---|
protected JsonToken |
ObjectReader._initForReading(DeserializationContext ctxt,
JsonParser p) |
protected JsonToken |
ObjectMapper._initForReading(JsonParser p)
Deprecated.
|
protected JsonToken |
ObjectMapper._initForReading(JsonParser p,
JavaType targetType)
Method called to ensure that given parser is ready for reading
content for data binding.
|
Modifier and Type | Method and Description |
---|---|
protected String |
DeserializationContext._shapeForToken(JsonToken t)
Helper method for constructing description like "Object value" given
JsonToken encountered. |
Object |
DeserializationContext.handleUnexpectedToken(Class<?> instClass,
JsonToken t,
JsonParser p,
String msg,
Object... msgArgs)
Method that deserializers should call if the first token of the value to
deserialize is of unexpected type (that is, type of token that deserializer
cannot handle).
|
Object |
DeserializationContext.handleUnexpectedToken(JavaType targetType,
JsonToken t,
JsonParser p,
String msg,
Object... msgArgs)
Method that deserializers should call if the first token of the value to
deserialize is of unexpected type (that is, type of token that deserializer
cannot handle).
|
JsonMappingException |
DeserializationContext.mappingException(Class<?> targetClass,
JsonToken token)
Deprecated.
Since 2.8 use
DeserializationContext.handleUnexpectedToken(Class, JsonParser) instead |
<T> T |
DeserializationContext.reportTrailingTokens(Class<?> targetType,
JsonParser p,
JsonToken trailingToken) |
void |
DeserializationContext.reportWrongTokenException(Class<?> targetType,
JsonToken expToken,
String msg,
Object... msgArgs)
Method for deserializers to call
when the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens.
|
void |
DeserializationContext.reportWrongTokenException(JavaType targetType,
JsonToken expToken,
String msg,
Object... msgArgs)
Method for deserializers to call
when the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens.
|
void |
DeserializationContext.reportWrongTokenException(JsonDeserializer<?> deser,
JsonToken expToken,
String msg,
Object... msgArgs)
Method for deserializers to call
when the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens.
|
void |
DeserializationContext.reportWrongTokenException(JsonParser p,
JsonToken expToken,
String msg,
Object... msgArgs)
Deprecated.
|
JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser p,
Class<?> targetType,
JsonToken expToken,
String extra) |
JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser p,
JavaType targetType,
JsonToken expToken,
String extra)
Helper method for constructing
JsonMappingException to indicate
that the token encountered was of type different than what should
be seen at that position, usually within a sequence of expected tokens. |
JsonMappingException |
DeserializationContext.wrongTokenException(JsonParser p,
JsonToken expToken,
String msg)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
BeanDeserializer._deserializeOther(JsonParser p,
DeserializationContext ctxt,
JsonToken t) |
Object |
DeserializationProblemHandler.handleUnexpectedToken(DeserializationContext ctxt,
Class<?> targetType,
JsonToken t,
JsonParser p,
String failureMsg)
Deprecated.
Since 2.10
|
Object |
DeserializationProblemHandler.handleUnexpectedToken(DeserializationContext ctxt,
JavaType targetType,
JsonToken t,
JsonParser p,
String failureMsg)
Method that deserializers should call if the first token of the value to
deserialize is of unexpected type (that is, type of token that deserializer
cannot handle).
|
Modifier and Type | Method and Description |
---|---|
protected Object |
FromStringDeserializer._deserializeFromOther(JsonParser p,
DeserializationContext ctxt,
JsonToken t) |
Modifier and Type | Method and Description |
---|---|
WritableTypeId |
TypeSerializer.typeId(Object value,
Class<?> typeForId,
JsonToken valueShape) |
WritableTypeId |
TypeSerializer.typeId(Object value,
JsonToken valueShape)
Factory method for constructing type id value object to pass to
TypeSerializer.writeTypePrefix(com.fasterxml.jackson.core.JsonGenerator, com.fasterxml.jackson.core.type.WritableTypeId) . |
WritableTypeId |
TypeSerializer.typeId(Object value,
JsonToken valueShape,
Object id) |
Modifier and Type | Method and Description |
---|---|
JsonToken |
ArrayNode.asToken() |
abstract JsonToken |
BaseJsonNode.asToken()
Method that can be used for efficient type detection
when using stream abstraction for traversing nodes.
|
JsonToken |
BigIntegerNode.asToken() |
JsonToken |
BinaryNode.asToken() |
JsonToken |
BooleanNode.asToken() |
abstract JsonToken |
ContainerNode.asToken() |
JsonToken |
DecimalNode.asToken() |
JsonToken |
DoubleNode.asToken() |
JsonToken |
FloatNode.asToken() |
JsonToken |
IntNode.asToken() |
JsonToken |
LongNode.asToken() |
JsonToken |
MissingNode.asToken() |
JsonToken |
NullNode.asToken() |
JsonToken |
ObjectNode.asToken() |
JsonToken |
POJONode.asToken() |
JsonToken |
ShortNode.asToken() |
JsonToken |
TextNode.asToken() |
abstract JsonToken |
ValueNode.asToken() |
JsonToken |
TreeTraversingParser.nextToken() |
Modifier and Type | Method and Description |
---|---|
protected WritableTypeId |
BeanSerializerBase._typeIdDef(TypeSerializer typeSer,
Object bean,
JsonToken valueShape) |
Modifier and Type | Method and Description |
---|---|
JsonToken |
TokenBuffer.firstToken() |
JsonToken |
TokenBuffer.Parser.nextToken() |
JsonToken |
TokenBuffer.Parser.peekNextToken() |
JsonToken |
TokenBuffer.Segment.type(int index) |
Modifier and Type | Method and Description |
---|---|
protected void |
TokenBuffer._appendEndMarker(JsonToken type)
Specialized method used for appending a structural end Object/Array marker
|
protected void |
TokenBuffer._appendStartMarker(JsonToken type)
Specialized method used for appending a structural start Object/Array marker
|
protected void |
TokenBuffer._appendValue(JsonToken type)
Method used for appending token known to represent a "simple" scalar
value where token is the only information
|
protected void |
TokenBuffer._appendValue(JsonToken type,
Object value)
Method used for appending token known to represent a scalar value
where there is additional content (text, number) beyond type token
|
TokenBuffer.Segment |
TokenBuffer.Segment.append(int index,
JsonToken tokenType) |
TokenBuffer.Segment |
TokenBuffer.Segment.append(int index,
JsonToken tokenType,
Object value) |
TokenBuffer.Segment |
TokenBuffer.Segment.append(int index,
JsonToken tokenType,
Object objectId,
Object typeId) |
TokenBuffer.Segment |
TokenBuffer.Segment.append(int index,
JsonToken tokenType,
Object value,
Object objectId,
Object typeId) |
Modifier and Type | Method and Description |
---|---|
protected JsonToken |
DurationSerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
InstantSerializerBase.serializationShape(SerializerProvider provider) |
protected JsonToken |
LocalDateSerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
LocalDateTimeSerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
LocalTimeSerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
MonthDaySerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
OffsetTimeSerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
YearMonthSerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
YearSerializer.serializationShape(SerializerProvider provider) |
protected JsonToken |
ZonedDateTimeSerializer.serializationShape(SerializerProvider provider) |
Copyright © 2021 JBoss by Red Hat. All rights reserved.