Class JacksonDecoder
java.lang.Object
io.micronaut.serde.LimitingStream
io.micronaut.serde.jackson.JacksonDecoder
- All Implemented Interfaces:
io.micronaut.serde.Decoder, io.micronaut.serde.KeysAwareDecoder, AutoCloseable
@Internal
public final class JacksonDecoder
extends io.micronaut.serde.LimitingStream
implements io.micronaut.serde.KeysAwareDecoder
Implementation of the
Decoder interface for Jackson.-
Nested Class Summary
Nested classes/interfaces inherited from class io.micronaut.serde.LimitingStream
io.micronaut.serde.LimitingStream.RemainingLimits -
Field Summary
Fields inherited from class io.micronaut.serde.LimitingStream
DEFAULT_LIMITS, DEFAULT_MAXIMUM_DEPTHFields inherited from interface io.micronaut.serde.KeysAwareDecoder
MATCH_END_OBJECT, MATCH_UNKNOWN_NAME -
Method Summary
Modifier and TypeMethodDescriptionstatic io.micronaut.serde.Decodercreate(tools.jackson.core.JsonParser parser, io.micronaut.serde.LimitingStream.RemainingLimits remainingLimits) createDeserializationException(String message, @Nullable Object invalidValue) @Nullable ObjectdecodeArray(io.micronaut.core.type.Argument<?> type) @Nullable BigDecimal@Nullable BigIntegerbyte[]boolean@Nullable Booleanio.micronaut.serde.Decoderbyte@Nullable Bytechar@Nullable Characterdouble@Nullable Doublefloat@Nullable Floatint@Nullable Integer@Nullable StringintdecodeKey(io.micronaut.serde.Keys keys) long@Nullable Longio.micronaut.json.tree.JsonNodebooleandecodeObject(io.micronaut.core.type.Argument<?> type) short@Nullable Short@Nullable StringvoidvoidfinishStructure(boolean consumeLeftElements) booleantools.jackson.core.JsonTokenConsumes the next token for integrations that need direct JSON token streaming.tools.jackson.core.JsonParserReturns the underlying parser for current-token scalar access.tools.jackson.core.JsonTokenPeeks the next token for integrations that need direct JSON token streaming.voidMethods inherited from class io.micronaut.serde.LimitingStream
childLimits, decreaseDepth, increaseDepth, limitsFromConfiguration, ourLimitsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.serde.Decoder
close, decodeBinaryNullable, decodeNumberNullable
-
Method Details
-
create
public static io.micronaut.serde.Decoder create(tools.jackson.core.JsonParser parser, io.micronaut.serde.LimitingStream.RemainingLimits remainingLimits) throws IOException - Throws:
IOException
-
decodeKey
public int decodeKey(io.micronaut.serde.Keys keys) - Specified by:
decodeKeyin interfaceio.micronaut.serde.KeysAwareDecoder
-
createDeserializationException
- Specified by:
createDeserializationExceptionin interfaceio.micronaut.serde.Decoder
-
finishStructure
- Specified by:
finishStructurein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
finishStructure
- Specified by:
finishStructurein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
hasNextArrayValue
- Specified by:
hasNextArrayValuein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeKey
- Specified by:
decodeKeyin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeArray
- Specified by:
decodeArrayin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeArray
- Specified by:
decodeArrayin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeObject
- Specified by:
decodeObjectin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeObject
- Specified by:
decodeObjectin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeString
- Specified by:
decodeStringin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeStringNullable
- Specified by:
decodeStringNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeBoolean
- Specified by:
decodeBooleanin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeBooleanNullable
- Specified by:
decodeBooleanNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeByte
- Specified by:
decodeBytein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeByteNullable
- Specified by:
decodeByteNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeShort
- Specified by:
decodeShortin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeShortNullable
- Specified by:
decodeShortNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeChar
- Specified by:
decodeCharin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeCharNullable
- Specified by:
decodeCharNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeInt
- Specified by:
decodeIntin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeIntNullable
- Specified by:
decodeIntNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeLong
- Specified by:
decodeLongin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeLongNullable
- Specified by:
decodeLongNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeFloat
- Specified by:
decodeFloatin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeFloatNullable
- Specified by:
decodeFloatNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeDouble
- Specified by:
decodeDoublein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeDoubleNullable
- Specified by:
decodeDoubleNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeBigInteger
- Specified by:
decodeBigIntegerin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeBigIntegerNullable
- Specified by:
decodeBigIntegerNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeBigDecimal
- Specified by:
decodeBigDecimalin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeBigDecimalNullable
- Specified by:
decodeBigDecimalNullablein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeNumber
- Specified by:
decodeNumberin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeBinary
- Specified by:
decodeBinaryin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeNull
- Specified by:
decodeNullin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
peekTokenForStreaming
Peeks the next token for integrations that need direct JSON token streaming.- Returns:
- The next token
- Throws:
IOException- If an unrecoverable error occurs
-
nextTokenForStreaming
Consumes the next token for integrations that need direct JSON token streaming.- Returns:
- The consumed token
- Throws:
IOException- If an unrecoverable error occurs
-
parserForStreaming
@Internal public tools.jackson.core.JsonParser parserForStreaming()Returns the underlying parser for current-token scalar access.- Returns:
- The underlying parser
-
decodeBuffer
- Specified by:
decodeBufferin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeNode
- Specified by:
decodeNodein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeArbitrary
- Specified by:
decodeArbitraryin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
skipValue
- Specified by:
skipValuein interfaceio.micronaut.serde.Decoder- Throws:
IOException
-