Class SmileParser
- java.lang.Object
-
- com.fasterxml.jackson.core.JsonParser
-
- com.fasterxml.jackson.core.base.ParserMinimalBase
-
- com.fasterxml.jackson.dataformat.smile.SmileParserBase
-
- com.fasterxml.jackson.dataformat.smile.SmileParser
-
- All Implemented Interfaces:
com.fasterxml.jackson.core.Versioned,java.io.Closeable,java.lang.AutoCloseable
public class SmileParser extends SmileParserBase
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSmileParser.FeatureEnumeration that defines all togglable features for Smile generators.
-
Field Summary
Fields Modifier and Type Field Description protected boolean_bufferRecyclableFlag that indicates whether the input buffer is recycable (and needs to be returned to recycler once we are done) or not.protected byte[]_inputBufferCurrent buffer from which data is read; generally data is read into buffer from input source, but in some cases pre-loaded buffer is handed to the parser.protected java.io.InputStream_inputStreamInput stream that can be used for reading more content, if one in use.protected com.fasterxml.jackson.core.ObjectCodec_objectCodecCodec used for data binding when (if) requested.protected boolean_tokenIncompleteFlag that indicates that the current token has not yet been fully processed, and needs to be finished for some access (or skipped to obtain the next token)protected int_typeAsIntType byte of the current token (as in)private static booleanJDK11_OR_LATERFlag to indicate if the JDK version is 11 or later.-
Fields inherited from class com.fasterxml.jackson.dataformat.smile.SmileParserBase
_binaryValue, _closed, _currInputProcessed, _formatFeatures, _inputEnd, _inputPtr, _ioContext, _mayContainRawBinary, _nameCopied, _nameCopyBuffer, _numberBigDecimal, _numberBigInt, _numberDouble, _numberFloat, _numberInt, _numberLong, _numberType, _numTypesValid, _quad1, _quad2, _quad3, _quadBuffer, _seenNameCount, _seenNames, _seenStringValueCount, _seenStringValues, _streamReadConstraints, _streamReadContext, _symbols, _symbolsCanonical, _textBuffer, _tokenOffsetForTotal, DEFAULT_NAME_BUFFER_LENGTH, DEFAULT_STRING_VALUE_BUFFER_LENGTH, LONGEST_NON_CHUNKED_BINARY, NO_STRINGS, SMILE_READ_CAPABILITIES
-
Fields inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_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 Summary
Constructors Constructor Description SmileParser(com.fasterxml.jackson.core.io.IOContext ctxt, int parserFeatures, int smileFeatures, com.fasterxml.jackson.core.ObjectCodec codec, com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer sym, java.io.InputStream in, byte[] inputBuffer, int start, int end, boolean bufferRecyclable)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String_addDecodedToSymbols(int len, java.lang.String name)private com.fasterxml.jackson.core.JsonToken_addSeenStringValue()protected void_closeInput()private void_decodeLongAsciiValue()private java.lang.String_decodeLongUnicodeName(int[] quads, int byteLen, int quadLen, boolean addToSymbolTable)private void_decodeLongUnicodeValue()private java.lang.String_decodeShortAsciiName(int len)protected java.lang.String_decodeShortAsciiValue(int len)private java.lang.String_decodeShortUnicodeName(int len)Helper method used to decode short Unicode string, length for which actual length (in bytes) is knownprotected java.lang.String_decodeShortUnicodeValue(int byteLen)private int_decodeUtf8_2(int c)private int_decodeUtf8_3(int c1)private int_decodeUtf8_3fast(int c1)private int_decodeUtf8_4(int c)private com.fasterxml.jackson.core.JsonToken_eofAsNextToken()private java.lang.String[]_expandSeenNames(java.lang.String[] oldShared)Method called to try to expand shared name area to fit one more potentially shared String.private void_expandSeenStringValues(java.lang.String newText)private java.lang.String_findDecodedFixed12(int len, int q1, int q2)Method for locating names longer than 12 bytes (in UTF-8)private java.lang.String_findDecodedFromSymbols(int len)Helper method for trying to find specified encoded UTF-8 byte sequence from symbol table; if successful avoids actual decoding to String.private java.lang.String_findOrDecodeShortAsciiName(int len)private java.lang.String_findOrDecodeShortUnicodeName(int len)private void_finishBigDecimal()private void_finishBigInteger()protected byte[]_finishBinary7BitLong(int expLen)private byte[]_finishBinaryRaw()protected byte[]_finishBinaryRawLong(int expLen)private void_finishDouble()private void_finishFloat()private void_finishInt()private void_finishIntSlow()private void_finishLong()private void_finishLongSlow()protected void_finishNumberToken(int tb)protected void_finishToken()Method called to finish parsing of a token so that token contents are retrievableprivate int_fourBytesToInt()private int_fourBytesToIntSlow()private byte[]_getBinaryFromString(com.fasterxml.jackson.core.Base64Variant variant)private static int[]_growArrayTo(int[] arr, int minSize)protected com.fasterxml.jackson.core.JsonToken_handleFieldName()Method that handles initial token type recognition for token that has to be either FIELD_NAME or END_OBJECT.private java.lang.String_handleLongFieldName()private com.fasterxml.jackson.core.JsonToken_handleSharedString(int index)protected boolean_loadMore()protected void_loadMoreGuaranteed()protected void_loadToHaveAtLeast(int minAvailable)Helper method that will try to load at least specified number bytes in input buffer, possible moving existing data around if necessary.private com.fasterxml.jackson.core.JsonToken_nextAfterHeader()private byte_nextByteGuaranteed()private static int_padLastQuad(int q, int bytes)private static int_padQuadForNulls(int firstByte)protected void_parseNumericValue()private byte[]_read7BitBinaryWithLength()private void_readBinaryEncoded(java.io.OutputStream out, int length, byte[] buffer)protected int_readUnsignedVInt()protected int_readUnsignedVIntSlow()protected void_releaseBuffers2()Method called to release internal buffers owned by the base reader.protected void_reportIncompleteBinaryRead7Bit(int expLen, int actLen)protected void_reportIncompleteBinaryReadRaw(int expLen, int actLen)protected void_reportInvalidInitial(int mask)protected void_reportInvalidOther(int mask)protected void_reportInvalidOther(int mask, int ptr)protected void_reportInvalidSharedName(int index)protected void_reportInvalidSharedStringValue(int index)protected void_reportInvalidUnsignedVInt(int firstCh, int lastCh)protected java.lang.String_reportTruncatedUTF8InName(int strLenBytes, int truncatedCharOffset, int firstUTFByteValue, int bytesExpected)protected java.lang.String_reportTruncatedUTF8InString(int strLenBytes, int truncatedCharOffset, int firstUTFByteValue, int bytesExpected)private java.lang.String_reportUnknownNameToken(int ch)private com.fasterxml.jackson.core.JsonToken_reportUnknownValueTypeToken(int ch)protected void_skip7BitBinary()Helper method for skipping length-prefixed binary data sectionprotected void_skipBytes(int len)protected void_skipIncomplete()Method called to skip remainders of an incomplete token, when contents themselves will not be needed any moreprotected int_tryToLoadToHaveAtLeast(int minAvailable)Helper method that will try to load at least specified number bytes in input buffer, possible moving existing data around if necessary.private voidcreateChildArrayContext(int lineNr, int colNr)private voidcreateChildObjectContext(int lineNr, int colNr)voidfinishToken()Method for forcing full read of current token, even if it might otherwise only be read if data is accessed viagetText()and similar methods.byte[]getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant)com.fasterxml.jackson.core.ObjectCodecgetCodec()java.lang.ObjectgetEmbeddedObject()java.lang.ObjectgetInputSource()java.lang.StringgetText()Method for accessing textual representation of the current event; if no current event (before first call tonextToken(), or after encountering end-of-input), returns null.intgetText(java.io.Writer writer)char[]getTextCharacters()intgetTextLength()intgetTextOffset()java.lang.StringgetValueAsString()java.lang.StringgetValueAsString(java.lang.String defaultValue)protected booleanhandleSignature(boolean consumeFirstByte, boolean throwException)Helper method called when it looks like input might contain the signature; and it is necessary to detect and handle signature to get configuration information it might have.booleanhasTextCharacters()java.lang.BooleannextBooleanValue()java.lang.StringnextFieldName()booleannextFieldName(com.fasterxml.jackson.core.SerializableString str)intnextIntValue(int defaultValue)longnextLongValue(long defaultValue)java.lang.StringnextTextValue()com.fasterxml.jackson.core.JsonTokennextToken()intreadBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant, java.io.OutputStream out)intreleaseBuffered(java.io.OutputStream out)voidsetCodec(com.fasterxml.jackson.core.ObjectCodec c)-
Methods inherited from class com.fasterxml.jackson.dataformat.smile.SmileParserBase
_handleEOF, _releaseBuffers, _reportMismatchedEndMarker, _sourceReference, close, convertNumberToBigDecimal, convertNumberToBigInteger, convertNumberToDouble, convertNumberToFloat, convertNumberToInt, convertNumberToLong, currentLocation, currentName, currentTokenLocation, getBigIntegerValue, getCurrentLocation, getCurrentName, getDecimalValue, getDoubleValue, getFloatValue, getFormatFeatures, getIntValue, getLongValue, getNumberType, getNumberTypeFP, getNumberValue, getNumberValueExact, getParsingContext, getReadCapabilities, getTokenLocation, isClosed, isNaN, mayContainRawBinary, overrideCurrentName, overrideFormatFeatures, streamReadConstraints, version
-
Methods inherited from class com.fasterxml.jackson.core.base.ParserMinimalBase
_ascii, _asciiBytes, _constructError, _currentLocationMinusOne, _decodeBase64, _getCharDesc, _hasTextualNull, _longIntegerDesc, _longNumberDesc, _reportError, _reportError, _reportError, _reportInputCoercion, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _reportUnexpectedNumberChar, _throwInternal, _throwInternalReturnAny, _throwInvalidSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, hasCurrentToken, hasToken, hasTokenId, isExpectedNumberIntToken, isExpectedStartArrayToken, isExpectedStartObjectToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowInt, reportOverflowInt, reportOverflowLong, reportOverflowLong, reportOverflowLong, reportUnexpectedNumberChar, skipChildren
-
Methods inherited from class com.fasterxml.jackson.core.JsonParser
_codec, _constructError, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _constructReadException, _reportUnsupportedOperation, assignCurrentValue, canParseAsync, canReadObjectId, canReadTypeId, canUseSchema, configure, currentValue, disable, enable, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getNonBlockingInputFeeder, getNumberValueDeferred, getObjectId, getSchema, getShortValue, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, isEnabled, overrideStdFeatures, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, requiresCustomCodec, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchema
-
-
-
-
Field Detail
-
JDK11_OR_LATER
private static final boolean JDK11_OR_LATER
Flag to indicate if the JDK version is 11 or later. This can be used in some methods to choose more optimal behavior. In particular, jdk9+ have different internals for the String class.- Since:
- 2.14.1
-
_objectCodec
protected com.fasterxml.jackson.core.ObjectCodec _objectCodec
Codec used for data binding when (if) requested.
-
_inputStream
protected java.io.InputStream _inputStream
Input stream that can be used for reading more content, if one in use. May be null, if input comes just as a full buffer, or if the stream has been closed.
-
_inputBuffer
protected byte[] _inputBuffer
Current buffer from which data is read; generally data is read into buffer from input source, but in some cases pre-loaded buffer is handed to the parser.
-
_bufferRecyclable
protected boolean _bufferRecyclable
Flag that indicates whether the input buffer is recycable (and needs to be returned to recycler once we are done) or not.If it is not, it also means that parser can NOT modify underlying buffer.
-
_typeAsInt
protected int _typeAsInt
Type byte of the current token (as in)
-
_tokenIncomplete
protected boolean _tokenIncomplete
Flag that indicates that the current token has not yet been fully processed, and needs to be finished for some access (or skipped to obtain the next token)
-
-
Constructor Detail
-
SmileParser
public SmileParser(com.fasterxml.jackson.core.io.IOContext ctxt, int parserFeatures, int smileFeatures, com.fasterxml.jackson.core.ObjectCodec codec, com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer sym, java.io.InputStream in, byte[] inputBuffer, int start, int end, boolean bufferRecyclable)
-
-
Method Detail
-
getCodec
public com.fasterxml.jackson.core.ObjectCodec getCodec()
- Specified by:
getCodecin classcom.fasterxml.jackson.core.JsonParser
-
setCodec
public void setCodec(com.fasterxml.jackson.core.ObjectCodec c)
- Specified by:
setCodecin classcom.fasterxml.jackson.core.JsonParser
-
handleSignature
protected boolean handleSignature(boolean consumeFirstByte, boolean throwException) throws java.io.IOExceptionHelper method called when it looks like input might contain the signature; and it is necessary to detect and handle signature to get configuration information it might have.- Returns:
- True if valid signature was found and handled; false if not
- Throws:
java.io.IOException
-
releaseBuffered
public int releaseBuffered(java.io.OutputStream out) throws java.io.IOException- Overrides:
releaseBufferedin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getInputSource
public java.lang.Object getInputSource()
- Overrides:
getInputSourcein classcom.fasterxml.jackson.core.JsonParser
-
_nextByteGuaranteed
private final byte _nextByteGuaranteed() throws java.io.IOException- Throws:
java.io.IOException
-
_loadMoreGuaranteed
protected final void _loadMoreGuaranteed() throws java.io.IOException- Throws:
java.io.IOException
-
_loadMore
protected final boolean _loadMore() throws java.io.IOException- Throws:
java.io.IOException
-
_loadToHaveAtLeast
protected final void _loadToHaveAtLeast(int minAvailable) throws java.io.IOExceptionHelper method that will try to load at least specified number bytes in input buffer, possible moving existing data around if necessary. Exception throws if not enough content can be read.- Parameters:
minAvailable- Minimum number of bytes we absolutely need- Throws:
java.io.IOException- if read failed, either due to I/O issue or because not enough content could be read before end-of-input.
-
_tryToLoadToHaveAtLeast
protected final int _tryToLoadToHaveAtLeast(int minAvailable) throws java.io.IOExceptionHelper method that will try to load at least specified number bytes in input buffer, possible moving existing data around if necessary.- Returns:
- Number of bytes that were missing, if any;
0for successful read - Throws:
java.io.IOException- Since:
- 2.12.3
-
_closeInput
protected void _closeInput() throws java.io.IOException- Specified by:
_closeInputin classSmileParserBase- Throws:
java.io.IOException
-
hasTextCharacters
public boolean hasTextCharacters()
- Specified by:
hasTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase
-
_releaseBuffers2
protected void _releaseBuffers2()
Method called to release internal buffers owned by the base reader. This may be called along with_closeInput()(for example, when explicitly closing this reader instance), or separately (if need be).- Specified by:
_releaseBuffers2in classSmileParserBase
-
nextToken
public com.fasterxml.jackson.core.JsonToken nextToken() throws java.io.IOException- Specified by:
nextTokenin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
_reportUnknownValueTypeToken
private com.fasterxml.jackson.core.JsonToken _reportUnknownValueTypeToken(int ch) throws java.io.IOException- Throws:
java.io.IOException
-
_nextAfterHeader
private com.fasterxml.jackson.core.JsonToken _nextAfterHeader() throws java.io.IOException- Throws:
java.io.IOException
-
_handleSharedString
private final com.fasterxml.jackson.core.JsonToken _handleSharedString(int index) throws java.io.IOException- Throws:
java.io.IOException
-
_addSeenStringValue
private final com.fasterxml.jackson.core.JsonToken _addSeenStringValue() throws java.io.IOException- Throws:
java.io.IOException
-
_expandSeenStringValues
private final void _expandSeenStringValues(java.lang.String newText)
-
finishToken
public void finishToken() throws java.io.IOExceptionMethod for forcing full read of current token, even if it might otherwise only be read if data is accessed viagetText()and similar methods.- Overrides:
finishTokenin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextFieldName
public boolean nextFieldName(com.fasterxml.jackson.core.SerializableString str) throws java.io.IOException- Overrides:
nextFieldNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextFieldName
public java.lang.String nextFieldName() throws java.io.IOException- Overrides:
nextFieldNamein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
_reportUnknownNameToken
private java.lang.String _reportUnknownNameToken(int ch) throws java.io.IOException- Throws:
java.io.IOException
-
nextTextValue
public java.lang.String nextTextValue() throws java.io.IOException- Overrides:
nextTextValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextIntValue
public int nextIntValue(int defaultValue) throws java.io.IOException- Overrides:
nextIntValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextLongValue
public long nextLongValue(long defaultValue) throws java.io.IOException- Overrides:
nextLongValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
nextBooleanValue
public java.lang.Boolean nextBooleanValue() throws java.io.IOException- Overrides:
nextBooleanValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getText
public java.lang.String getText() throws java.io.IOExceptionMethod for accessing textual representation of the current event; if no current event (before first call tonextToken(), or after encountering end-of-input), returns null. Method can be called for any event.- Specified by:
getTextin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextCharacters
public char[] getTextCharacters() throws java.io.IOException- Specified by:
getTextCharactersin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextLength
public int getTextLength() throws java.io.IOException- Specified by:
getTextLengthin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getTextOffset
public int getTextOffset() throws java.io.IOException- Specified by:
getTextOffsetin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getValueAsString
public java.lang.String getValueAsString() throws java.io.IOException- Overrides:
getValueAsStringin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getValueAsString
public java.lang.String getValueAsString(java.lang.String defaultValue) throws java.io.IOException- Overrides:
getValueAsStringin classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getText
public int getText(java.io.Writer writer) throws java.io.IOException- Overrides:
getTextin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
getBinaryValue
public byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant) throws java.io.IOException- Specified by:
getBinaryValuein classcom.fasterxml.jackson.core.base.ParserMinimalBase- Throws:
java.io.IOException
-
getEmbeddedObject
public java.lang.Object getEmbeddedObject() throws java.io.IOException- Overrides:
getEmbeddedObjectin classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
readBinaryValue
public int readBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant, java.io.OutputStream out) throws java.io.IOException- Overrides:
readBinaryValuein classcom.fasterxml.jackson.core.JsonParser- Throws:
java.io.IOException
-
_readBinaryEncoded
private void _readBinaryEncoded(java.io.OutputStream out, int length, byte[] buffer) throws java.io.IOException- Throws:
java.io.IOException
-
_getBinaryFromString
private final byte[] _getBinaryFromString(com.fasterxml.jackson.core.Base64Variant variant) throws java.io.IOException- Throws:
java.io.IOException
-
_handleFieldName
protected final com.fasterxml.jackson.core.JsonToken _handleFieldName() throws java.io.IOExceptionMethod that handles initial token type recognition for token that has to be either FIELD_NAME or END_OBJECT.- Throws:
java.io.IOException
-
_findOrDecodeShortAsciiName
private java.lang.String _findOrDecodeShortAsciiName(int len) throws java.io.IOException- Throws:
java.io.IOException
-
_findOrDecodeShortUnicodeName
private java.lang.String _findOrDecodeShortUnicodeName(int len) throws java.io.IOException- Throws:
java.io.IOException
-
_expandSeenNames
private final java.lang.String[] _expandSeenNames(java.lang.String[] oldShared)
Method called to try to expand shared name area to fit one more potentially shared String. If area is already at its biggest size, will just clear the area (by setting next-offset to 0)
-
_addDecodedToSymbols
private final java.lang.String _addDecodedToSymbols(int len, java.lang.String name) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeShortAsciiName
private final java.lang.String _decodeShortAsciiName(int len) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeShortUnicodeName
private final java.lang.String _decodeShortUnicodeName(int len) throws java.io.IOExceptionHelper method used to decode short Unicode string, length for which actual length (in bytes) is known- Parameters:
len- Length between 1 and 64- Throws:
java.io.IOException
-
_decodeLongUnicodeName
private final java.lang.String _decodeLongUnicodeName(int[] quads, int byteLen, int quadLen, boolean addToSymbolTable) throws java.io.IOException- Throws:
java.io.IOException
-
_handleLongFieldName
private final java.lang.String _handleLongFieldName() throws java.io.IOException- Throws:
java.io.IOException
-
_findDecodedFromSymbols
private final java.lang.String _findDecodedFromSymbols(int len) throws java.io.IOExceptionHelper method for trying to find specified encoded UTF-8 byte sequence from symbol table; if successful avoids actual decoding to String.NOTE: caller MUST ensure input buffer has enough content.
- Throws:
java.io.IOException
-
_findDecodedFixed12
private final java.lang.String _findDecodedFixed12(int len, int q1, int q2) throws java.io.IOExceptionMethod for locating names longer than 12 bytes (in UTF-8)- Throws:
java.io.IOException
-
_growArrayTo
private static int[] _growArrayTo(int[] arr, int minSize)
-
_padLastQuad
private static final int _padLastQuad(int q, int bytes)
-
_padQuadForNulls
private static final int _padQuadForNulls(int firstByte)
-
_parseNumericValue
protected void _parseNumericValue() throws java.io.IOException- Specified by:
_parseNumericValuein classSmileParserBase- Throws:
java.io.IOException
-
_finishToken
protected final void _finishToken() throws java.io.IOExceptionMethod called to finish parsing of a token so that token contents are retrievable- Throws:
java.io.IOException
-
_finishNumberToken
protected final void _finishNumberToken(int tb) throws java.io.IOException- Throws:
java.io.IOException
-
_finishInt
private final void _finishInt() throws java.io.IOException- Throws:
java.io.IOException
-
_finishIntSlow
private final void _finishIntSlow() throws java.io.IOException- Throws:
java.io.IOException
-
_finishLong
private final void _finishLong() throws java.io.IOException- Throws:
java.io.IOException
-
_finishLongSlow
private final void _finishLongSlow() throws java.io.IOException- Throws:
java.io.IOException
-
_fourBytesToInt
private final int _fourBytesToInt() throws java.io.IOException- Throws:
java.io.IOException
-
_fourBytesToIntSlow
private final int _fourBytesToIntSlow() throws java.io.IOException- Throws:
java.io.IOException
-
_finishBigInteger
private final void _finishBigInteger() throws java.io.IOException- Throws:
java.io.IOException
-
_finishFloat
private final void _finishFloat() throws java.io.IOException- Throws:
java.io.IOException
-
_finishDouble
private final void _finishDouble() throws java.io.IOException- Throws:
java.io.IOException
-
_finishBigDecimal
private final void _finishBigDecimal() throws java.io.IOException- Throws:
java.io.IOException
-
_readUnsignedVInt
protected final int _readUnsignedVInt() throws java.io.IOException- Throws:
java.io.IOException
-
_readUnsignedVIntSlow
protected final int _readUnsignedVIntSlow() throws java.io.IOException- Throws:
java.io.IOException
-
_reportInvalidUnsignedVInt
protected final void _reportInvalidUnsignedVInt(int firstCh, int lastCh) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeShortAsciiValue
protected final java.lang.String _decodeShortAsciiValue(int len) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeShortUnicodeValue
protected final java.lang.String _decodeShortUnicodeValue(int byteLen) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeLongAsciiValue
private final void _decodeLongAsciiValue() throws java.io.IOException- Throws:
java.io.IOException
-
_decodeLongUnicodeValue
private final void _decodeLongUnicodeValue() throws java.io.IOException- Throws:
java.io.IOException
-
_finishBinaryRaw
private final byte[] _finishBinaryRaw() throws java.io.IOException- Throws:
java.io.IOException
-
_finishBinaryRawLong
protected byte[] _finishBinaryRawLong(int expLen) throws java.io.IOException- Throws:
java.io.IOException
-
_read7BitBinaryWithLength
private final byte[] _read7BitBinaryWithLength() throws java.io.IOException- Throws:
java.io.IOException
-
_finishBinary7BitLong
protected byte[] _finishBinary7BitLong(int expLen) throws java.io.IOException- Throws:
java.io.IOException
-
_skipIncomplete
protected void _skipIncomplete() throws java.io.IOExceptionMethod called to skip remainders of an incomplete token, when contents themselves will not be needed any more- Throws:
java.io.IOException
-
_skipBytes
protected void _skipBytes(int len) throws java.io.IOException- Throws:
java.io.IOException
-
_skip7BitBinary
protected void _skip7BitBinary() throws java.io.IOExceptionHelper method for skipping length-prefixed binary data section- Throws:
java.io.IOException
-
_decodeUtf8_2
private final int _decodeUtf8_2(int c) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeUtf8_3
private final int _decodeUtf8_3(int c1) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeUtf8_3fast
private final int _decodeUtf8_3fast(int c1) throws java.io.IOException- Throws:
java.io.IOException
-
_decodeUtf8_4
private final int _decodeUtf8_4(int c) throws java.io.IOException- Returns:
- Character value minus 0x10000; this so that caller can readily expand it to actual surrogates
- Throws:
java.io.IOException
-
_reportInvalidSharedName
protected void _reportInvalidSharedName(int index) throws java.io.IOException- Throws:
java.io.IOException
-
_reportInvalidSharedStringValue
protected void _reportInvalidSharedStringValue(int index) throws java.io.IOException- Throws:
java.io.IOException
-
_reportInvalidInitial
protected void _reportInvalidInitial(int mask) throws com.fasterxml.jackson.core.JsonParseException- Throws:
com.fasterxml.jackson.core.JsonParseException
-
_reportInvalidOther
protected void _reportInvalidOther(int mask) throws com.fasterxml.jackson.core.JsonParseException- Throws:
com.fasterxml.jackson.core.JsonParseException
-
_reportInvalidOther
protected void _reportInvalidOther(int mask, int ptr) throws com.fasterxml.jackson.core.JsonParseException- Throws:
com.fasterxml.jackson.core.JsonParseException
-
_reportIncompleteBinaryReadRaw
protected void _reportIncompleteBinaryReadRaw(int expLen, int actLen) throws java.io.IOException- Throws:
java.io.IOException
-
_reportIncompleteBinaryRead7Bit
protected void _reportIncompleteBinaryRead7Bit(int expLen, int actLen) throws java.io.IOException- Throws:
java.io.IOException
-
_reportTruncatedUTF8InString
protected java.lang.String _reportTruncatedUTF8InString(int strLenBytes, int truncatedCharOffset, int firstUTFByteValue, int bytesExpected) throws java.io.IOException- Throws:
java.io.IOException
-
_reportTruncatedUTF8InName
protected java.lang.String _reportTruncatedUTF8InName(int strLenBytes, int truncatedCharOffset, int firstUTFByteValue, int bytesExpected) throws java.io.IOException- Throws:
java.io.IOException
-
_eofAsNextToken
private final com.fasterxml.jackson.core.JsonToken _eofAsNextToken() throws java.io.IOException- Throws:
java.io.IOException
-
createChildArrayContext
private void createChildArrayContext(int lineNr, int colNr) throws java.io.IOException- Throws:
java.io.IOException
-
createChildObjectContext
private void createChildObjectContext(int lineNr, int colNr) throws java.io.IOException- Throws:
java.io.IOException
-
-