Class JsonNodeDecoder

  • All Implemented Interfaces:
    io.micronaut.serde.Decoder, java.lang.AutoCloseable

    @Internal
    public abstract class JsonNodeDecoder
    extends java.lang.Object
    implements io.micronaut.serde.Decoder
    Implementation of the Decoder interface that uss the JsonNode abstraction.
    • Method Detail

      • create

        public static JsonNodeDecoder create​(io.micronaut.json.tree.JsonNode node)
      • peekValue

        protected abstract io.micronaut.json.tree.JsonNode peekValue()
      • decodeArray

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

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

        public java.lang.String decodeString()
                                      throws java.io.IOException
        Specified by:
        decodeString in interface io.micronaut.serde.Decoder
        Throws:
        java.io.IOException
      • decodeBoolean

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

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

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

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

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

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

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

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

        public java.math.BigInteger decodeBigInteger()
                                              throws java.io.IOException
        Specified by:
        decodeBigInteger in interface io.micronaut.serde.Decoder
        Throws:
        java.io.IOException
      • decodeBigDecimal

        public java.math.BigDecimal decodeBigDecimal()
                                              throws java.io.IOException
        Specified by:
        decodeBigDecimal in interface io.micronaut.serde.Decoder
        Throws:
        java.io.IOException
      • decodeNull

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

        public java.lang.Object decodeArbitrary()
                                         throws java.io.IOException
        Specified by:
        decodeArbitrary in interface io.micronaut.serde.Decoder
        Throws:
        java.io.IOException
      • decodeBuffer

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

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