public abstract class SmileParserBase
extends com.fasterxml.jackson.core.base.ParserMinimalBase
| Modifier and Type | Field and Description | 
|---|---|
| protected byte[] | _binaryValueWe will hold on to decoded binary data, for duration of
 current event, so that multiple calls to
  ParserMinimalBase.getBinaryValue(com.fasterxml.jackson.core.Base64Variant)will not need to decode data more
 than once. | 
| protected boolean | _closedFlag that indicates whether parser is closed or not. | 
| protected long | _currInputProcessedNumber of characters/bytes that were contained in previous blocks
 (blocks that were already processed prior to the current buffer). | 
| protected int | _formatFeaturesBit flag composed of bits that indicate which
  SmileParser.Features are enabled. | 
| protected int | _inputEndIndex of character after last available one in the buffer. | 
| protected int | _inputPtrPointer to next available character in buffer | 
| protected com.fasterxml.jackson.core.io.IOContext | _ioContextI/O context for this reader. | 
| protected boolean | _mayContainRawBinaryFlag that indicates whether content can legally have raw (unquoted)
 binary data. | 
| protected boolean | _nameCopiedFlag 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) | 
| protected char[] | _nameCopyBufferTemporary buffer that is needed if field name is accessed
 using  ParserMinimalBase.getTextCharacters()method (instead of String
 returning alternatives) | 
| protected BigDecimal | _numberBigDecimal | 
| protected BigInteger | _numberBigInt | 
| protected double | _numberDouble | 
| protected float | _numberFloat | 
| protected int | _numberInt | 
| protected long | _numberLong | 
| protected com.fasterxml.jackson.core.JsonParser.NumberType | _numberType | 
| protected int | _numTypesValidBitfield that indicates which numeric representations
 have been calculated for the current type | 
| protected com.fasterxml.jackson.core.json.JsonReadContext | _parsingContextInformation about parser context, context in which
 the next token is to be parsed (root, array, object). | 
| protected int | _quad1Quads used for hash calculation | 
| protected int | _quad2Quads used for hash calculation | 
| protected int | _quad3Quads used for hash calculation | 
| protected int[] | _quadBufferTemporary buffer used for name parsing. | 
| protected int | _seenNameCount | 
| protected String[] | _seenNamesArray of recently seen field names, which may be back referenced
 by later fields. | 
| protected int | _seenStringValueCount | 
| protected String[] | _seenStringValuesArray of recently seen field names, which may be back referenced
 by later fields
 Defaults set to disable handling if no header found. | 
| protected SmileBufferRecycler<String> | _smileBufferRecyclerHelper object used for low-level recycling of Smile-generator
 specific buffers. | 
| protected static ThreadLocal<SoftReference<SmileBufferRecycler<String>>> | _smileRecyclerRefThreadLocalcontains aSoftReferenceto a buffer recycler used to provide a low-cost
 buffer recycling for Smile-specific buffers. | 
| protected com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer | _symbolsSymbol table that contains field names encountered so far | 
| protected com.fasterxml.jackson.core.util.TextBuffer | _textBufferBuffer that contains contents of String values, including
 field names if necessary (name split across boundary,
 contains escape sequence, or access needed to char array) | 
| protected int | _tokenOffsetForTotalAlternative to  #_tokenInputTotalthat will only contain
 offset within input buffer, as int. | 
| protected static String[] | NO_STRINGS | 
_currToken, _lastClearedToken, 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_ERROR_TOKEN_LENGTH, MAX_INT_D, MAX_INT_L, MAX_LONG_D, MIN_INT_D, MIN_INT_L, MIN_LONG_D, NO_BYTES, NO_INTS, NR_BIGDECIMAL, NR_BIGINT, NR_DOUBLE, NR_FLOAT, NR_INT, NR_LONG, NR_UNKNOWN| Constructor and Description | 
|---|
| SmileParserBase(com.fasterxml.jackson.core.io.IOContext ctxt,
               int parserFeatures,
               int formatFeatures,
               com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer sym) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected abstract void | _closeInput() | 
| protected Object | _getSourceReference()Helper method used to encapsulate logic of including (or not) of
 "source reference" when constructing  JsonLocationinstances. | 
| protected void | _handleEOF()Method called when an EOF is encountered between tokens. | 
| protected abstract void | _parseNumericValue() | 
| protected void | _releaseBuffers() | 
| protected abstract void | _releaseBuffers2() | 
| protected void | _reportMismatchedEndMarker(int actCh,
                          char expCh) | 
| protected static SmileBufferRecycler<String> | _smileBufferRecycler() | 
| void | close() | 
| protected void | convertNumberToBigDecimal() | 
| protected void | convertNumberToBigInteger() | 
| protected void | convertNumberToDouble() | 
| protected void | convertNumberToFloat() | 
| protected void | convertNumberToInt() | 
| protected void | convertNumberToLong() | 
| BigInteger | getBigIntegerValue() | 
| com.fasterxml.jackson.core.JsonLocation | getCurrentLocation()Overridden since we do not really have character-based locations,
 but we do have byte offset to specify. | 
| String | getCurrentName()Method that can be called to get the name associated with
 the current event. | 
| BigDecimal | getDecimalValue() | 
| double | getDoubleValue() | 
| float | getFloatValue() | 
| int | getFormatFeatures() | 
| int | getIntValue() | 
| long | getLongValue() | 
| com.fasterxml.jackson.core.JsonParser.NumberType | getNumberType() | 
| Number | getNumberValue() | 
| com.fasterxml.jackson.core.json.JsonReadContext | getParsingContext() | 
| com.fasterxml.jackson.core.JsonLocation | getTokenLocation()Overridden since we do not really have character-based locations,
 but we do have byte offset to specify. | 
| boolean | isClosed() | 
| boolean | isNaN() | 
| boolean | mayContainRawBinary() | 
| void | overrideCurrentName(String name) | 
| com.fasterxml.jackson.core.JsonParser | overrideFormatFeatures(int values,
                      int mask) | 
| com.fasterxml.jackson.core.Version | version() | 
_ascii, _asciiBytes, _constructError, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _throwInternal, _throwInvalidSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getBinaryValue, getCurrentToken, getCurrentTokenId, getLastClearedToken, getText, getTextCharacters, getTextLength, getTextOffset, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasTextCharacters, hasToken, hasTokenId, isExpectedStartArrayToken, isExpectedStartObjectToken, nextToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildren_codec, _constructError, _reportUnsupportedOperation, canParseAsync, canReadObjectId, canReadTypeId, canUseSchema, configure, currentName, disable, enable, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCodec, getCurrentValue, getEmbeddedObject, getFeatureMask, getInputSource, getNonBlockingInputFeeder, getObjectId, getSchema, getShortValue, getText, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, isEnabled, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, nextTextValue, overrideStdFeatures, readBinaryValue, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, releaseBuffered, requiresCustomCodec, setCodec, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchemaprotected static final String[] NO_STRINGS
protected int _formatFeatures
SmileParser.Features are enabled.
 NOTE: currently the only feature (SmileParser.Feature.REQUIRE_HEADER
 takes effect during bootstrapping.
protected boolean _mayContainRawBinary
protected final com.fasterxml.jackson.core.io.IOContext _ioContext
protected boolean _closed
close()) or when end-of-input is reached.protected int _inputPtr
protected int _inputEnd
protected long _currInputProcessed
protected int _tokenOffsetForTotal
#_tokenInputTotal that will only contain
 offset within input buffer, as int.protected com.fasterxml.jackson.core.json.JsonReadContext _parsingContext
protected final com.fasterxml.jackson.core.util.TextBuffer _textBuffer
protected char[] _nameCopyBuffer
ParserMinimalBase.getTextCharacters() method (instead of String
 returning alternatives)protected boolean _nameCopied
protected byte[] _binaryValue
ParserMinimalBase.getBinaryValue(com.fasterxml.jackson.core.Base64Variant) will not need to decode data more
 than once.protected com.fasterxml.jackson.core.JsonParser.NumberType _numberType
protected int _numTypesValid
protected BigInteger _numberBigInt
protected BigDecimal _numberBigDecimal
protected int _numberInt
protected float _numberFloat
protected long _numberLong
protected double _numberDouble
protected final com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer _symbols
protected int[] _quadBuffer
protected int _quad1
protected int _quad2
protected int _quad3
protected String[] _seenNames
protected int _seenNameCount
protected String[] _seenStringValues
protected int _seenStringValueCount
protected static final ThreadLocal<SoftReference<SmileBufferRecycler<String>>> _smileRecyclerRef
ThreadLocal contains a SoftReference
 to a buffer recycler used to provide a low-cost
 buffer recycling for Smile-specific buffers.protected final SmileBufferRecycler<String> _smileBufferRecycler
public SmileParserBase(com.fasterxml.jackson.core.io.IOContext ctxt,
                       int parserFeatures,
                       int formatFeatures,
                       com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer sym)
protected static final SmileBufferRecycler<String> _smileBufferRecycler()
public final com.fasterxml.jackson.core.Version version()
version in interface com.fasterxml.jackson.core.Versionedversion in class com.fasterxml.jackson.core.JsonParserpublic final boolean mayContainRawBinary()
public final int getFormatFeatures()
getFormatFeatures in class com.fasterxml.jackson.core.JsonParserpublic final com.fasterxml.jackson.core.JsonParser overrideFormatFeatures(int values,
                                                                          int mask)
overrideFormatFeatures in class com.fasterxml.jackson.core.JsonParserprotected abstract void _closeInput()
                             throws IOException
IOExceptionprotected abstract void _parseNumericValue()
                                    throws IOException
IOExceptionpublic final com.fasterxml.jackson.core.JsonLocation getTokenLocation()
getTokenLocation in class com.fasterxml.jackson.core.JsonParserpublic final com.fasterxml.jackson.core.JsonLocation getCurrentLocation()
getCurrentLocation in class com.fasterxml.jackson.core.JsonParserpublic final String getCurrentName() throws IOException
getCurrentName in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic final void overrideCurrentName(String name)
overrideCurrentName in class com.fasterxml.jackson.core.base.ParserMinimalBasepublic final void close()
                 throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionprotected final void _releaseBuffers()
                              throws IOException
IOExceptionprotected abstract void _releaseBuffers2()
public final boolean isClosed()
isClosed in class com.fasterxml.jackson.core.base.ParserMinimalBasepublic final com.fasterxml.jackson.core.json.JsonReadContext getParsingContext()
getParsingContext in class com.fasterxml.jackson.core.base.ParserMinimalBasepublic final boolean isNaN()
                    throws IOException
isNaN in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final Number getNumberValue() throws IOException
getNumberValue in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final com.fasterxml.jackson.core.JsonParser.NumberType getNumberType()
                                                                     throws IOException
getNumberType in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final int getIntValue()
                      throws IOException
getIntValue in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final long getLongValue()
                        throws IOException
getLongValue in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final BigInteger getBigIntegerValue() throws IOException
getBigIntegerValue in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final float getFloatValue()
                          throws IOException
getFloatValue in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final double getDoubleValue()
                            throws IOException
getDoubleValue in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic final BigDecimal getDecimalValue() throws IOException
getDecimalValue in class com.fasterxml.jackson.core.JsonParserIOExceptionprotected final void convertNumberToInt()
                                 throws IOException
IOExceptionprotected final void convertNumberToLong()
                                  throws IOException
IOExceptionprotected final void convertNumberToBigInteger()
                                        throws IOException
IOExceptionprotected final void convertNumberToFloat()
                                   throws IOException
IOExceptionprotected final void convertNumberToDouble()
                                    throws IOException
IOExceptionprotected final void convertNumberToBigDecimal()
                                        throws IOException
IOExceptionprotected void _handleEOF()
                   throws com.fasterxml.jackson.core.JsonParseException
_handleEOF in class com.fasterxml.jackson.core.base.ParserMinimalBasecom.fasterxml.jackson.core.JsonParseExceptionprotected void _reportMismatchedEndMarker(int actCh,
                                          char expCh)
                                   throws com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.core.JsonParseExceptionprotected Object _getSourceReference()
JsonLocation instances.Copyright © 2019 FasterXML. All rights reserved.