Package io.micronaut.serde.jackson
Class JacksonDecoder
java.lang.Object
io.micronaut.serde.LimitingStream
io.micronaut.serde.jackson.JacksonDecoder
- All Implemented Interfaces:
io.micronaut.serde.Decoder,AutoCloseable
@Internal
public final class JacksonDecoder
extends io.micronaut.serde.LimitingStream
implements io.micronaut.serde.Decoder
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_DEPTH -
Method Summary
Modifier and TypeMethodDescriptionstatic io.micronaut.serde.Decodercreate(com.fasterxml.jackson.core.JsonParser parser, io.micronaut.serde.LimitingStream.RemainingLimits remainingLimits) createDeserializationException(String message, Object invalidValue) @Nullable Object@NonNull JacksonDecoderdecodeArray(io.micronaut.core.type.Argument<?> type) @NonNull BigDecimal@Nullable BigDecimal@NonNull BigInteger@Nullable BigIntegerbyte @NonNull []boolean@Nullable Booleanio.micronaut.serde.Decoderbyte@Nullable Bytechar@Nullable Characterdouble@Nullable Doublefloat@Nullable Floatint@Nullable Integer@Nullable Stringlong@Nullable Long@NonNull io.micronaut.json.tree.JsonNodeboolean@NonNull JacksonDecoderdecodeObject(io.micronaut.core.type.Argument<?> type) short@Nullable Short@NonNull String@Nullable StringvoidvoidfinishStructure(boolean consumeLeftElements) booleanvoidMethods inherited from class io.micronaut.serde.LimitingStream
childLimits, decreaseDepth, increaseDepth, limitsFromConfiguration, ourLimitsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.serde.Decoder
close, decodeBinaryNullable
-
Method Details
-
create
public static io.micronaut.serde.Decoder create(com.fasterxml.jackson.core.JsonParser parser, io.micronaut.serde.LimitingStream.RemainingLimits remainingLimits) throws IOException - Throws:
IOException
-
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
@NonNull public @NonNull JacksonDecoder decodeArray(io.micronaut.core.type.Argument<?> type) throws IOException - Specified by:
decodeArrayin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeArray
- Specified by:
decodeArrayin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeObject
@NonNull public @NonNull JacksonDecoder decodeObject(io.micronaut.core.type.Argument<?> type) throws IOException - 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
-
decodeBinary
- Specified by:
decodeBinaryin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
decodeNull
- Specified by:
decodeNullin interfaceio.micronaut.serde.Decoder- Throws:
IOException
-
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
-