Class JacksonParser


  • final class JacksonParser
    extends JsonParser
    Low-level JSON serializer implementation based on Jackson.

    Implementation is not thread-safe.

    • Field Detail

      • parser

        private final org.codehaus.jackson.JsonParser parser
    • Constructor Detail

      • JacksonParser

        JacksonParser​(JacksonFactory factory,
                      org.codehaus.jackson.JsonParser parser)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Description copied from class: JsonParser
        Closes the parser and the underlying input stream or reader, and releases any memory associated with it.
        Specified by:
        close in class JsonParser
        Throws:
        java.io.IOException
      • nextToken

        public JsonToken nextToken()
                            throws java.io.IOException
        Description copied from class: JsonParser
        Returns the next token from the stream or null to indicate end of input.
        Specified by:
        nextToken in class JsonParser
        Throws:
        java.io.IOException
      • getCurrentName

        public java.lang.String getCurrentName()
                                        throws java.io.IOException
        Description copied from class: JsonParser
        Returns the most recent field name or null for array values or for root-level values.
        Specified by:
        getCurrentName in class JsonParser
        Throws:
        java.io.IOException
      • getCurrentToken

        public JsonToken getCurrentToken()
        Description copied from class: JsonParser
        Returns the token the parser currently points to or null for none (at start of input or after end of input).
        Specified by:
        getCurrentToken in class JsonParser
      • getText

        public java.lang.String getText()
                                 throws java.io.IOException
        Description copied from class: JsonParser
        Returns a textual representation of the current token or null if JsonParser.getCurrentToken() is null.
        Specified by:
        getText in class JsonParser
        Throws:
        java.io.IOException
      • getByteValue

        public byte getByteValue()
                          throws java.io.IOException
        Description copied from class: JsonParser
        Returns the byte value of the current token.
        Specified by:
        getByteValue in class JsonParser
        Throws:
        java.io.IOException
      • getFloatValue

        public float getFloatValue()
                            throws java.io.IOException
        Description copied from class: JsonParser
        Returns the float value of the current token.
        Specified by:
        getFloatValue in class JsonParser
        Throws:
        java.io.IOException
      • getIntValue

        public int getIntValue()
                        throws java.io.IOException
        Description copied from class: JsonParser
        Returns the int value of the current token.
        Specified by:
        getIntValue in class JsonParser
        Throws:
        java.io.IOException
      • getShortValue

        public short getShortValue()
                            throws java.io.IOException
        Description copied from class: JsonParser
        Returns the short value of the current token.
        Specified by:
        getShortValue in class JsonParser
        Throws:
        java.io.IOException
      • getBigIntegerValue

        public java.math.BigInteger getBigIntegerValue()
                                                throws java.io.IOException
        Description copied from class: JsonParser
        Returns the BigInteger value of the current token.
        Specified by:
        getBigIntegerValue in class JsonParser
        Throws:
        java.io.IOException
      • getDecimalValue

        public java.math.BigDecimal getDecimalValue()
                                             throws java.io.IOException
        Description copied from class: JsonParser
        Returns the BigDecimal value of the current token.
        Specified by:
        getDecimalValue in class JsonParser
        Throws:
        java.io.IOException
      • getDoubleValue

        public double getDoubleValue()
                              throws java.io.IOException
        Description copied from class: JsonParser
        Returns the double value of the current token.
        Specified by:
        getDoubleValue in class JsonParser
        Throws:
        java.io.IOException
      • getLongValue

        public long getLongValue()
                          throws java.io.IOException
        Description copied from class: JsonParser
        Returns the long value of the current token.
        Specified by:
        getLongValue in class JsonParser
        Throws:
        java.io.IOException