@Internal public final class JacksonDecoder extends AbstractChildReuseStreamDecoder
Decoder interface for Jackson.AbstractStreamDecoder.TokenType, AbstractStreamDecoder.ValueDecoder<R>| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
coerceScalarToString()
Decode any non-null scalar value (number, string or boolean) to its string representation.
|
static Decoder |
create(com.fasterxml.jackson.core.JsonParser parser) |
static Decoder |
create(com.fasterxml.jackson.core.JsonParser parser,
java.lang.Class<?> view) |
protected AbstractStreamDecoder |
createChildDecoder()
Create a new child decoder using
AbstractStreamDecoder(AbstractStreamDecoder). |
java.io.IOException |
createDeserializationException(java.lang.String message,
java.lang.Object invalidValue)
Creates an exception for the given message.
|
protected AbstractStreamDecoder.TokenType |
currentToken() |
protected java.lang.Number |
getBestNumber()
Decode the current
AbstractStreamDecoder.TokenType.NUMBER value as a Number value. |
protected java.math.BigDecimal |
getBigDecimal()
Decode the current
AbstractStreamDecoder.TokenType.NUMBER value as a BigDecimal value. |
protected java.math.BigInteger |
getBigInteger()
Decode the current
AbstractStreamDecoder.TokenType.NUMBER value as a BigInteger value. |
protected boolean |
getBoolean()
Decode the current
AbstractStreamDecoder.TokenType.BOOLEAN value. |
protected java.lang.String |
getCurrentKey()
Get the current object field name.
|
protected double |
getDouble()
Decode the current
AbstractStreamDecoder.TokenType.NUMBER value as a double value. |
protected int |
getInteger()
Decode the current
AbstractStreamDecoder.TokenType.NUMBER value as a long value. |
protected long |
getLong()
Decode the current
AbstractStreamDecoder.TokenType.NUMBER value as a long value. |
protected void |
nextToken()
Move to the next token.
|
protected void |
skipChildren()
If we are at a
AbstractStreamDecoder.TokenType.START_OBJECT or AbstractStreamDecoder.TokenType.START_ARRAY, skip to the matching
AbstractStreamDecoder.TokenType.END_OBJECT or AbstractStreamDecoder.TokenType.END_ARRAY. |
backFromChild, decodeArbitrary, decodeArray, decodeBigDecimal, decodeBigInteger, decodeBoolean, decodeBuffer, decodeByte, decodeChar, decodeCustom, decodeCustom, decodeDouble, decodeFloat, decodeInt, decodeKey, decodeLong, decodeNull, decodeNumber, decodeObject, decodeShort, decodeString, finishStructure, getBestNumberNode, hasNextArrayValue, skipValue, unexpectedTokenclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclose, decodeArray, decodeObjectpublic static Decoder create(com.fasterxml.jackson.core.JsonParser parser) throws java.io.IOException
java.io.IOExceptionpublic static Decoder create(com.fasterxml.jackson.core.JsonParser parser, java.lang.Class<?> view) throws java.io.IOException
java.io.IOExceptionpublic java.io.IOException createDeserializationException(java.lang.String message,
java.lang.Object invalidValue)
Decodermessage - The message, never nullinvalidValue - The invalid value. Can be null.nullprotected AbstractStreamDecoder.TokenType currentToken()
currentToken in class AbstractStreamDecoderprotected void nextToken()
throws java.io.IOException
AbstractStreamDecodernextToken in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected java.lang.String getCurrentKey()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.KEY.getCurrentKey in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected AbstractStreamDecoder createChildDecoder()
AbstractStreamDecoderAbstractStreamDecoder(AbstractStreamDecoder).createChildDecoder in class AbstractStreamDecoderprotected java.lang.String coerceScalarToString()
throws java.io.IOException
AbstractStreamDecodercoerceScalarToString in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected boolean getBoolean()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.BOOLEAN value. Called for no other token type.getBoolean in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected long getLong()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.NUMBER value as a long value. Called for no other token type.getLong in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected int getInteger()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.NUMBER value as a long value. Called for no other token type.getInteger in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected double getDouble()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.NUMBER value as a double value. Called for no other token type.getDouble in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected java.math.BigInteger getBigInteger()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.NUMBER value as a BigInteger value. Called for no other token type.getBigInteger in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected java.math.BigDecimal getBigDecimal()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.NUMBER value as a BigDecimal value. Called for no other token type.getBigDecimal in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected java.lang.Number getBestNumber()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.NUMBER value as a Number value. Called for no other token type.getBestNumber in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occursprotected void skipChildren()
throws java.io.IOException
AbstractStreamDecoderAbstractStreamDecoder.TokenType.START_OBJECT or AbstractStreamDecoder.TokenType.START_ARRAY, skip to the matching
AbstractStreamDecoder.TokenType.END_OBJECT or AbstractStreamDecoder.TokenType.END_ARRAY. Else, do nothing.skipChildren in class AbstractStreamDecoderjava.io.IOException - if an unrecoverable error occurs