Class TokenBuffer.Parser

java.lang.Object
tools.jackson.core.JsonParser
tools.jackson.core.base.ParserMinimalBase
tools.jackson.databind.util.TokenBuffer.Parser
All Implemented Interfaces:
Closeable, AutoCloseable, tools.jackson.core.Versioned
Enclosing class:
TokenBuffer

protected static final class TokenBuffer.Parser extends tools.jackson.core.base.ParserMinimalBase
  • Nested Class Summary

    Nested classes/interfaces inherited from class tools.jackson.core.JsonParser

    tools.jackson.core.JsonParser.NumberType, tools.jackson.core.JsonParser.NumberTypeFP
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected tools.jackson.core.util.ByteArrayBuilder
     
    protected boolean
     
    protected final boolean
     
    protected final boolean
     
    protected final boolean
     
    protected tools.jackson.core.TokenStreamLocation
     
    Information about parser context, context in which the next token is to be parsed (root, array, object).
    Currently active segment
    protected int
    Pointer to current token within current segment
    protected final TokenBuffer
     
    protected tools.jackson.core.StreamReadConstraints
     

    Fields inherited from class tools.jackson.core.base.ParserMinimalBase

    _currToken, _ioContext, _lastClearedToken, _objectReadContext, _streamReadFeatures, _tokenCount, _trackMaxTokenCount, BD_MAX_INT, BD_MAX_LONG, BD_MIN_INT, BD_MIN_LONG, BI_MAX_INT, BI_MAX_LONG, BI_MIN_INT, BI_MIN_LONG, CHAR_NULL, INT_0, INT_9, INT_APOS, INT_ASTERISK, INT_BACKSLASH, INT_COLON, INT_COMMA, INT_CR, INT_e, INT_E, INT_HASH, INT_LBRACKET, INT_LCURLY, INT_LF, INT_MINUS, INT_PERIOD, INT_PLUS, INT_QUOTE, INT_RBRACKET, INT_RCURLY, INT_SLASH, INT_SPACE, INT_TAB, MAX_BYTE_I, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MAX_SHORT_I, MIN_BYTE_I, MIN_INT_D, MIN_INT_L, MIN_LONG_D, MIN_SHORT_I, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN, STREAM_READ_FEATURE_DEFAULTS

    Fields inherited from class tools.jackson.core.JsonParser

    DEFAULT_READ_CAPABILITIES
  • Constructor Summary

    Constructors
    Constructor
    Description
    Parser(tools.jackson.core.ObjectReadContext readCtxt, TokenBuffer source, TokenBuffer.Segment firstSeg, boolean hasNativeTypeIds, boolean hasNativeObjectIds, tools.jackson.core.TokenStreamContext parentContext, tools.jackson.core.StreamReadConstraints streamReadConstraints)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected int
     
    protected long
     
    protected final Object
     
    protected void
     
    protected void
     
    void
     
    boolean
     
    boolean
     
    void
     
    tools.jackson.core.TokenStreamLocation
     
     
    tools.jackson.core.TokenStreamLocation
     
     
     
    byte[]
    getBinaryValue(tools.jackson.core.Base64Variant b64variant)
     
     
    double
     
     
    float
     
    int
     
    long
     
    tools.jackson.core.JsonParser.NumberType
     
    tools.jackson.core.JsonParser.NumberTypeFP
     
    final Number
     
     
     
     
    char[]
     
    int
     
    int
     
     
    boolean
     
    boolean
     
    boolean
     
     
    int
    nextNameMatch(tools.jackson.core.sym.PropertyNameMatcher matcher)
     
    tools.jackson.core.JsonToken
     
    tools.jackson.core.JsonToken
     
    int
    readBinaryValue(tools.jackson.core.Base64Variant b64variant, OutputStream out)
     
    void
    setLocation(tools.jackson.core.TokenStreamLocation l)
     
    tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability>
     
    tools.jackson.core.StreamReadConstraints
     
    tools.jackson.core.TokenStreamContext
     
     
    tools.jackson.core.Version
     

    Methods inherited from class tools.jackson.core.base.ParserMinimalBase

    _constructInputCoercion, _constructNotNumericType, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _nullSafeUpdateToken, _reportBadInputStream, _reportBadReader, _reportError, _reportError, _reportError, _reportError, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidNumber, _reportInvalidSpace, _reportMissingRootWS, _reportOverflowByte, _reportOverflowInt, _reportOverflowInt, _reportOverflowInt, _reportOverflowLong, _reportOverflowLong, _reportOverflowLong, _reportOverflowShort, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _updateToken, _updateTokenToNA, _updateTokenToNull, _wrapIOFailure, clearCurrentToken, currentNameMatch, currentToken, currentTokenCount, currentTokenId, finishToken, getBooleanValue, getByteValue, getLastClearedToken, getNumberValueExact, getShortValue, getString, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isEnabled, isExpectedNumberIntToken, isExpectedStartArrayToken, isExpectedStartObjectToken, nextName, nextValue, objectReadContext, readValueAs, readValueAs, readValueAs, readValueAsTree, skipChildren, streamReadFeatures

    Methods inherited from class tools.jackson.core.JsonParser

    _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, canParseAsync, getBinaryValue, getSchema, getText, getTextCharacters, getTextLength, getTextOffset, getValueAsBoolean, getValueAsDouble, nextBooleanValue, nextIntValue, nextLongValue, nextStringValue, nonBlockingInputFeeder, readBinaryValue, releaseBuffered, releaseBuffered

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • _streamReadConstraints

      protected tools.jackson.core.StreamReadConstraints _streamReadConstraints
    • _source

      protected final TokenBuffer _source
    • _hasNativeTypeIds

      protected final boolean _hasNativeTypeIds
    • _hasNativeObjectIds

      protected final boolean _hasNativeObjectIds
    • _hasNativeIds

      protected final boolean _hasNativeIds
    • _segment

      protected TokenBuffer.Segment _segment
      Currently active segment
    • _segmentPtr

      protected int _segmentPtr
      Pointer to current token within current segment
    • _parsingContext

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

      protected boolean _closed
    • _byteBuilder

      protected transient tools.jackson.core.util.ByteArrayBuilder _byteBuilder
    • _location

      protected tools.jackson.core.TokenStreamLocation _location
  • Constructor Details

    • Parser

      public Parser(tools.jackson.core.ObjectReadContext readCtxt, TokenBuffer source, TokenBuffer.Segment firstSeg, boolean hasNativeTypeIds, boolean hasNativeObjectIds, tools.jackson.core.TokenStreamContext parentContext, tools.jackson.core.StreamReadConstraints streamReadConstraints)
  • Method Details

    • setLocation

      public void setLocation(tools.jackson.core.TokenStreamLocation l)
    • version

      public tools.jackson.core.Version version()
      Specified by:
      version in interface tools.jackson.core.Versioned
      Specified by:
      version in class tools.jackson.core.JsonParser
    • streamReadCapabilities

      public tools.jackson.core.util.JacksonFeatureSet<tools.jackson.core.StreamReadCapability> streamReadCapabilities()
      Overrides:
      streamReadCapabilities in class tools.jackson.core.base.ParserMinimalBase
    • streamReadInputSource

      public TokenBuffer streamReadInputSource()
      Specified by:
      streamReadInputSource in class tools.jackson.core.JsonParser
    • streamReadConstraints

      public tools.jackson.core.StreamReadConstraints streamReadConstraints()
      Overrides:
      streamReadConstraints in class tools.jackson.core.base.ParserMinimalBase
    • peekNextToken

      public tools.jackson.core.JsonToken peekNextToken()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable
      Overrides:
      close in class tools.jackson.core.base.ParserMinimalBase
    • _closeInput

      protected void _closeInput() throws IOException
      Specified by:
      _closeInput in class tools.jackson.core.base.ParserMinimalBase
      Throws:
      IOException
    • _releaseBuffers

      protected void _releaseBuffers()
      Specified by:
      _releaseBuffers in class tools.jackson.core.base.ParserMinimalBase
    • nextToken

      public tools.jackson.core.JsonToken nextToken()
      Specified by:
      nextToken in class tools.jackson.core.JsonParser
    • nextName

      public String nextName()
      Overrides:
      nextName in class tools.jackson.core.base.ParserMinimalBase
    • nextNameMatch

      public int nextNameMatch(tools.jackson.core.sym.PropertyNameMatcher matcher)
      Overrides:
      nextNameMatch in class tools.jackson.core.base.ParserMinimalBase
    • isClosed

      public boolean isClosed()
      Overrides:
      isClosed in class tools.jackson.core.base.ParserMinimalBase
    • streamReadContext

      public tools.jackson.core.TokenStreamContext streamReadContext()
      Specified by:
      streamReadContext in class tools.jackson.core.JsonParser
    • assignCurrentValue

      public void assignCurrentValue(Object v)
      Specified by:
      assignCurrentValue in class tools.jackson.core.JsonParser
    • currentValue

      public Object currentValue()
      Specified by:
      currentValue in class tools.jackson.core.JsonParser
    • currentTokenLocation

      public tools.jackson.core.TokenStreamLocation currentTokenLocation()
      Specified by:
      currentTokenLocation in class tools.jackson.core.JsonParser
    • currentLocation

      public tools.jackson.core.TokenStreamLocation currentLocation()
      Specified by:
      currentLocation in class tools.jackson.core.JsonParser
    • currentName

      public String currentName()
      Specified by:
      currentName in class tools.jackson.core.JsonParser
    • getString

      public String getString()
      Specified by:
      getString in class tools.jackson.core.JsonParser
    • getStringCharacters

      public char[] getStringCharacters()
      Specified by:
      getStringCharacters in class tools.jackson.core.JsonParser
    • getStringLength

      public int getStringLength()
      Specified by:
      getStringLength in class tools.jackson.core.JsonParser
    • getStringOffset

      public int getStringOffset()
      Specified by:
      getStringOffset in class tools.jackson.core.JsonParser
    • hasStringCharacters

      public boolean hasStringCharacters()
      Specified by:
      hasStringCharacters in class tools.jackson.core.JsonParser
    • isNaN

      public boolean isNaN()
      Specified by:
      isNaN in class tools.jackson.core.JsonParser
    • getBigIntegerValue

      public BigInteger getBigIntegerValue()
      Specified by:
      getBigIntegerValue in class tools.jackson.core.JsonParser
    • getDecimalValue

      public BigDecimal getDecimalValue()
      Specified by:
      getDecimalValue in class tools.jackson.core.JsonParser
    • getDoubleValue

      public double getDoubleValue()
      Specified by:
      getDoubleValue in class tools.jackson.core.JsonParser
    • getFloatValue

      public float getFloatValue()
      Specified by:
      getFloatValue in class tools.jackson.core.JsonParser
    • getIntValue

      public int getIntValue()
      Specified by:
      getIntValue in class tools.jackson.core.JsonParser
    • getLongValue

      public long getLongValue()
      Specified by:
      getLongValue in class tools.jackson.core.JsonParser
    • getNumberType

      public tools.jackson.core.JsonParser.NumberType getNumberType()
      Specified by:
      getNumberType in class tools.jackson.core.JsonParser
    • getNumberTypeFP

      public tools.jackson.core.JsonParser.NumberTypeFP getNumberTypeFP()
      Overrides:
      getNumberTypeFP in class tools.jackson.core.base.ParserMinimalBase
    • getNumberValue

      public final Number getNumberValue()
      Specified by:
      getNumberValue in class tools.jackson.core.JsonParser
    • getNumberValueDeferred

      public Object getNumberValueDeferred()
      Overrides:
      getNumberValueDeferred in class tools.jackson.core.base.ParserMinimalBase
    • _convertNumberToInt

      protected int _convertNumberToInt(Number n) throws tools.jackson.core.exc.InputCoercionException
      Throws:
      tools.jackson.core.exc.InputCoercionException
    • _convertNumberToLong

      protected long _convertNumberToLong(Number n) throws tools.jackson.core.exc.InputCoercionException
      Throws:
      tools.jackson.core.exc.InputCoercionException
    • getEmbeddedObject

      public Object getEmbeddedObject()
      Overrides:
      getEmbeddedObject in class tools.jackson.core.base.ParserMinimalBase
    • getBinaryValue

      public byte[] getBinaryValue(tools.jackson.core.Base64Variant b64variant) throws tools.jackson.core.JacksonException
      Specified by:
      getBinaryValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • readBinaryValue

      public int readBinaryValue(tools.jackson.core.Base64Variant b64variant, OutputStream out) throws tools.jackson.core.JacksonException
      Overrides:
      readBinaryValue in class tools.jackson.core.JsonParser
      Throws:
      tools.jackson.core.JacksonException
    • canReadObjectId

      public boolean canReadObjectId()
      Overrides:
      canReadObjectId in class tools.jackson.core.JsonParser
    • canReadTypeId

      public boolean canReadTypeId()
      Overrides:
      canReadTypeId in class tools.jackson.core.JsonParser
    • getTypeId

      public Object getTypeId()
      Overrides:
      getTypeId in class tools.jackson.core.JsonParser
    • getObjectId

      public Object getObjectId()
      Overrides:
      getObjectId in class tools.jackson.core.JsonParser
    • _currentObject

      protected final Object _currentObject()
    • _handleEOF

      protected void _handleEOF()
      Specified by:
      _handleEOF in class tools.jackson.core.base.ParserMinimalBase