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.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.util |
Utility classes used by Jackson Core functionality.
|
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() , will be deprecated in Jackson 2.9 |
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._reportInvalidEOF(String msg,
JsonToken currToken) |
protected void |
ParserMinimalBase._reportInvalidEOFInValue(JsonToken type) |
boolean |
ParserMinimalBase.hasToken(JsonToken t) |
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 |
UTF8StreamJsonParser._handleApos() |
protected JsonToken |
UTF8DataInputJsonParser._handleApos() |
protected JsonToken |
ReaderBasedJsonParser._handleApos() |
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 |
UTF8DataInputJsonParser._handleInvalidNumberStart(int ch,
boolean neg)
Method called if expected numeric value (due to leading sign) does not
look like a number
|
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 |
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 |
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 |
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._parseNegNumber() |
protected JsonToken |
UTF8DataInputJsonParser._parseNegNumber() |
protected JsonToken |
ReaderBasedJsonParser._parseNegNumber() |
protected JsonToken |
UTF8StreamJsonParser._parsePosNumber(int c)
Initial parsing method for number values.
|
protected JsonToken |
UTF8DataInputJsonParser._parsePosNumber(int c)
Initial parsing method for number values.
|
protected JsonToken |
ReaderBasedJsonParser._parsePosNumber(int ch)
Initial parsing method for number values.
|
JsonToken |
UTF8StreamJsonParser.nextToken() |
JsonToken |
UTF8DataInputJsonParser.nextToken() |
JsonToken |
ReaderBasedJsonParser.nextToken() |
Modifier and Type | Method and Description |
---|---|
protected String |
UTF8StreamJsonParser._getText2(JsonToken t) |
protected String |
UTF8DataInputJsonParser._getText2(JsonToken t) |
protected String |
ReaderBasedJsonParser._getText2(JsonToken t) |
protected char |
ReaderBasedJsonParser.getNextChar(String eofMsg,
JsonToken forToken) |
Modifier and Type | Method and Description |
---|---|
JsonToken |
JsonParserDelegate.currentToken() |
JsonToken |
JsonParserDelegate.getCurrentToken() |
JsonToken |
JsonParserDelegate.getLastClearedToken() |
JsonToken |
JsonParserSequence.nextToken() |
JsonToken |
JsonParserDelegate.nextToken() |
JsonToken |
JsonParserDelegate.nextValue() |
protected JsonToken |
JsonParserSequence.switchAndReturnNext() |
Modifier and Type | Method and Description |
---|---|
boolean |
JsonParserDelegate.hasToken(JsonToken t) |
Copyright © 2008-2016 FasterXML. All Rights Reserved.