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.
  • 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

      public IOException createDeserializationException(String message, Object invalidValue)
      Specified by:
      createDeserializationException in interface io.micronaut.serde.Decoder
    • finishStructure

      public void finishStructure(boolean consumeLeftElements) throws IOException
      Specified by:
      finishStructure in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • finishStructure

      public void finishStructure() throws IOException
      Specified by:
      finishStructure in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • hasNextArrayValue

      public boolean hasNextArrayValue() throws IOException
      Specified by:
      hasNextArrayValue in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeKey

      @Nullable public @Nullable String decodeKey() throws IOException
      Specified by:
      decodeKey in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeArray

      @NonNull public @NonNull JacksonDecoder decodeArray(io.micronaut.core.type.Argument<?> type) throws IOException
      Specified by:
      decodeArray in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeArray

      public JacksonDecoder decodeArray() throws IOException
      Specified by:
      decodeArray in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeObject

      @NonNull public @NonNull JacksonDecoder decodeObject(io.micronaut.core.type.Argument<?> type) throws IOException
      Specified by:
      decodeObject in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeObject

      public JacksonDecoder decodeObject() throws IOException
      Specified by:
      decodeObject in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeString

      @NonNull public @NonNull String decodeString() throws IOException
      Specified by:
      decodeString in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeStringNullable

      @Nullable public @Nullable String decodeStringNullable() throws IOException
      Specified by:
      decodeStringNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBoolean

      public boolean decodeBoolean() throws IOException
      Specified by:
      decodeBoolean in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBooleanNullable

      @Nullable public @Nullable Boolean decodeBooleanNullable() throws IOException
      Specified by:
      decodeBooleanNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeByte

      public byte decodeByte() throws IOException
      Specified by:
      decodeByte in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeByteNullable

      @Nullable public @Nullable Byte decodeByteNullable() throws IOException
      Specified by:
      decodeByteNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeShort

      public short decodeShort() throws IOException
      Specified by:
      decodeShort in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeShortNullable

      @Nullable public @Nullable Short decodeShortNullable() throws IOException
      Specified by:
      decodeShortNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeChar

      public char decodeChar() throws IOException
      Specified by:
      decodeChar in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeCharNullable

      @Nullable public @Nullable Character decodeCharNullable() throws IOException
      Specified by:
      decodeCharNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeInt

      public int decodeInt() throws IOException
      Specified by:
      decodeInt in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeIntNullable

      @Nullable public @Nullable Integer decodeIntNullable() throws IOException
      Specified by:
      decodeIntNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeLong

      public long decodeLong() throws IOException
      Specified by:
      decodeLong in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeLongNullable

      @Nullable public @Nullable Long decodeLongNullable() throws IOException
      Specified by:
      decodeLongNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeFloat

      public float decodeFloat() throws IOException
      Specified by:
      decodeFloat in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeFloatNullable

      @Nullable public @Nullable Float decodeFloatNullable() throws IOException
      Specified by:
      decodeFloatNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeDouble

      public double decodeDouble() throws IOException
      Specified by:
      decodeDouble in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeDoubleNullable

      @Nullable public @Nullable Double decodeDoubleNullable() throws IOException
      Specified by:
      decodeDoubleNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBigInteger

      @NonNull public @NonNull BigInteger decodeBigInteger() throws IOException
      Specified by:
      decodeBigInteger in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBigIntegerNullable

      @Nullable public @Nullable BigInteger decodeBigIntegerNullable() throws IOException
      Specified by:
      decodeBigIntegerNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBigDecimal

      @NonNull public @NonNull BigDecimal decodeBigDecimal() throws IOException
      Specified by:
      decodeBigDecimal in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBigDecimalNullable

      @Nullable public @Nullable BigDecimal decodeBigDecimalNullable() throws IOException
      Specified by:
      decodeBigDecimalNullable in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBinary

      public byte @NonNull [] decodeBinary() throws IOException
      Specified by:
      decodeBinary in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeNull

      public boolean decodeNull() throws IOException
      Specified by:
      decodeNull in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeBuffer

      public io.micronaut.serde.Decoder decodeBuffer() throws IOException
      Specified by:
      decodeBuffer in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeNode

      @NonNull public @NonNull io.micronaut.json.tree.JsonNode decodeNode() throws IOException
      Specified by:
      decodeNode in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • decodeArbitrary

      @Nullable public @Nullable Object decodeArbitrary() throws IOException
      Specified by:
      decodeArbitrary in interface io.micronaut.serde.Decoder
      Throws:
      IOException
    • skipValue

      public void skipValue() throws IOException
      Specified by:
      skipValue in interface io.micronaut.serde.Decoder
      Throws:
      IOException