com.fasterxml.jackson.core.base

Class ParserBase

    • Field Detail

      • _ioContext

        protected final IOContext _ioContext
        I/O context for this reader. It handles buffer allocation for the reader.
      • _closed

        protected boolean _closed
        Flag that indicates whether parser is closed or not. Gets set when parser is either closed by explicit call (close()) or when end-of-input is reached.
      • _inputPtr

        protected int _inputPtr
        Pointer to next available character in buffer
      • _inputEnd

        protected int _inputEnd
        Index of character after last available one in the buffer.
      • _currInputProcessed

        protected long _currInputProcessed
        Number of characters/bytes that were contained in previous blocks (blocks that were already processed prior to the current buffer).
      • _currInputRow

        protected int _currInputRow
        Current row location of current point in input buffer, starting from 1, if available.
      • _currInputRowStart

        protected int _currInputRowStart
        Current index of the first character of the current row in input buffer. Needed to calculate column position, if necessary; benefit of not having column itself is that this only has to be updated once per line.
      • _tokenInputTotal

        protected long _tokenInputTotal
        Total number of bytes/characters read before start of current token. For big (gigabyte-sized) sizes are possible, needs to be long, unlike pointers and sizes related to in-memory buffers.
      • _tokenInputRow

        protected int _tokenInputRow
        Input row on which current token starts, 1-based
      • _tokenInputCol

        protected int _tokenInputCol
        Column on input row that current token starts; 0-based (although in the end it'll be converted to 1-based)
      • _parsingContext

        protected JsonReadContext _parsingContext
        Information about parser context, context in which the next token is to be parsed (root, array, object).
      • _nextToken

        protected JsonToken _nextToken
        Secondary token related to the next token after current one; used if its type is known. This may be value token that follows FIELD_NAME, for example.
      • _textBuffer

        protected final TextBuffer _textBuffer
        Buffer that contains contents of String values, including field names if necessary (name split across boundary, contains escape sequence, or access needed to char array)
      • _nameCopyBuffer

        protected char[] _nameCopyBuffer
        Temporary buffer that is needed if field name is accessed using ParserMinimalBase.getTextCharacters() method (instead of String returning alternatives)
      • _nameCopied

        protected boolean _nameCopied
        Flag set to indicate whether the field name is available from the name copy buffer or not (in addition to its String representation being available via read context)
      • _byteArrayBuilder

        protected ByteArrayBuilder _byteArrayBuilder
        ByteArrayBuilder is needed if 'getBinaryValue' is called. If so, we better reuse it for remainder of content.
      • _numTypesValid

        protected int _numTypesValid
        Bitfield that indicates which numeric representations have been calculated for the current type
      • _numberInt

        protected int _numberInt
      • _numberLong

        protected long _numberLong
      • _numberDouble

        protected double _numberDouble
      • _numberBigInt

        protected BigInteger _numberBigInt
      • _numberBigDecimal

        protected BigDecimal _numberBigDecimal
      • _numberNegative

        protected boolean _numberNegative
        Flag that indicates whether numeric value has a negative value. That is, whether its textual representation starts with minus character.
      • _intLength

        protected int _intLength
        Length of integer part of the number, in characters
      • _fractLength

        protected int _fractLength
        Length of the fractional part (not including decimal point or exponent), in characters. Not used for pure integer values.
      • _expLength

        protected int _expLength
        Length of the exponent part of the number, if any, not including 'e' marker or sign, just digits. Not used for pure integer values.
    • Constructor Detail

      • ParserBase

        protected ParserBase(IOContext ctxt,
                  int features)

Copyright © 2014-2015 FasterXML. All Rights Reserved.