public abstract class NonBlockingParserBase extends SmileParserBase
| Modifier and Type | Field and Description | 
|---|---|
| protected com.fasterxml.jackson.core.util.ByteArrayBuilder | _byteArrayBuilderByteArrayBuilder is needed if 'getBinaryValue' is called. | 
| protected boolean | _endOfInputFlag that is sent when calling application indicates that there will
 be no more input to parse. | 
| protected byte[] | _inputCopyTemporary buffer for holding content if input not contiguous (but can
 fit in buffer) | 
| protected int | _inputCopyLenNumber of bytes buffered in  _inputCopy | 
| protected int | _majorStateCurrent main decoding state | 
| protected int | _majorStateAfterValueValue of  _majorStateafter completing a scalar value | 
| protected int | _minorStateAddition indicator within state; contextually relevant for just that state | 
| protected int | _pending32Temporary storage for 32-bit values (int, float), as well as length markers
 for length-prefixed values. | 
| protected long | _pending64Temporary storage for 64-bit values (long, double), secondary storage
 for some other things (scale of BigDecimal values) | 
| protected static int | MAJOR_ARRAY_ELEMENT | 
| protected static int | MAJOR_CLOSEDState after non-blocking input source has indicated that no more input
 is forthcoming AND we have exhausted all the input | 
| protected static int | MAJOR_INITIALState right after parser has been constructed, before seeing the first byte
 to know if there's header. | 
| protected static int | MAJOR_OBJECT_FIELD | 
| protected static int | MAJOR_OBJECT_VALUE | 
| protected static int | MAJOR_ROOTState right after parser a root value has been
 finished, but next token has not yet been recognized. | 
| protected static int | MINOR_FIELD_NAME_2BYTE | 
| protected static int | MINOR_FIELD_NAME_LONG | 
| protected static int | MINOR_FIELD_NAME_SHORT_ASCII | 
| protected static int | MINOR_FIELD_NAME_SHORT_UNICODE | 
| protected static int | MINOR_HEADER_INITIAL | 
| protected static int | MINOR_HEADER_INLINE | 
| protected static int | MINOR_VALUE_BINARY_7BIT_BODY | 
| protected static int | MINOR_VALUE_BINARY_7BIT_LEN | 
| protected static int | MINOR_VALUE_BINARY_RAW_BODY | 
| protected static int | MINOR_VALUE_BINARY_RAW_LEN | 
| protected static int | MINOR_VALUE_NUMBER_BIGDEC_BODY | 
| protected static int | MINOR_VALUE_NUMBER_BIGDEC_LEN | 
| protected static int | MINOR_VALUE_NUMBER_BIGDEC_SCALE | 
| protected static int | MINOR_VALUE_NUMBER_BIGINT_BODY | 
| protected static int | MINOR_VALUE_NUMBER_BIGINT_LEN | 
| protected static int | MINOR_VALUE_NUMBER_DOUBLE | 
| protected static int | MINOR_VALUE_NUMBER_FLOAT | 
| protected static int | MINOR_VALUE_NUMBER_INT | 
| protected static int | MINOR_VALUE_NUMBER_LONG | 
| protected static int | MINOR_VALUE_STRING_LONG_ASCII | 
| protected static int | MINOR_VALUE_STRING_LONG_UNICODE | 
| protected static int | MINOR_VALUE_STRING_SHARED_2BYTE | 
| protected static int | MINOR_VALUE_STRING_SHORT_ASCII | 
| protected static int | MINOR_VALUE_STRING_SHORT_UNICODE | 
_binaryValue, _closed, _currInputProcessed, _formatFeatures, _inputEnd, _inputPtr, _ioContext, _mayContainRawBinary, _nameCopied, _nameCopyBuffer, _numberBigDecimal, _numberBigInt, _numberDouble, _numberFloat, _numberInt, _numberLong, _numberType, _numTypesValid, _parsingContext, _quad1, _quad2, _quad3, _quadBuffer, _seenNameCount, _seenNames, _seenStringValueCount, _seenStringValues, _smileBufferRecycler, _smileRecyclerRef, _symbols, _textBuffer, _tokenOffsetForTotal, 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 | 
|---|
| NonBlockingParserBase(com.fasterxml.jackson.core.io.IOContext ctxt,
                     int parserFeatures,
                     int smileFeatures,
                     com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer sym) | 
| Modifier and Type | Method and Description | 
|---|---|
| protected String | _addDecodedToSymbols(int len,
                    String name) | 
| protected void | _addSeenStringValue(String v) | 
| protected com.fasterxml.jackson.core.JsonToken | _closeArrayScope() | 
| protected void | _closeInput() | 
| protected com.fasterxml.jackson.core.JsonToken | _closeObjectScope() | 
| protected com.fasterxml.jackson.core.JsonToken | _eofAsNextToken()Helper method called at point when all input has been exhausted and
 input feeder has indicated no more input will be forthcoming. | 
| protected String[] | _expandSeenNames(String[] oldShared)Method called to try to expand shared name area to fit one more potentially
 shared String. | 
| protected String | _findDecodedFromSymbols(byte[] inBuf,
                       int inPtr,
                       int len) | 
| protected com.fasterxml.jackson.core.JsonToken | _handleSharedName(int index) | 
| protected com.fasterxml.jackson.core.JsonToken | _handleSharedString(int index) | 
| void | _initByteArrayBuilder() | 
| protected void | _parseNumericValue() | 
| protected void | _releaseBuffers2()Method called to release internal buffers owned by the base
 reader. | 
| protected void | _reportInvalidInitial(int mask) | 
| protected void | _reportInvalidOther(int mask,
                   int ptr) | 
| protected void | _reportInvalidSharedName(int index) | 
| protected void | _reportInvalidSharedStringValue(int index) | 
| protected void | _reportMissingHeader(int unmaskedFirstByte) | 
| protected com.fasterxml.jackson.core.JsonToken | _startArrayScope() | 
| protected com.fasterxml.jackson.core.JsonToken | _startObjectScope() | 
| protected com.fasterxml.jackson.core.JsonToken | _valueComplete(com.fasterxml.jackson.core.JsonToken t) | 
| boolean | canParseAsync() | 
| byte[] | getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant) | 
| com.fasterxml.jackson.core.ObjectCodec | getCodec() | 
| Object | getEmbeddedObject() | 
| Object | getInputSource() | 
| String | getText()Method for accessing textual representation of the current event;
 if no current event (before first call to  ParserMinimalBase.nextToken(), or
 after encountering end-of-input), returns null. | 
| int | getText(Writer w) | 
| char[] | getTextCharacters() | 
| int | getTextLength() | 
| int | getTextOffset() | 
| boolean | hasTextCharacters() | 
| int | readBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant,
               OutputStream out) | 
| abstract int | releaseBuffered(OutputStream out) | 
| void | setCodec(com.fasterxml.jackson.core.ObjectCodec c) | 
| protected com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer | symbolTableForTests() | 
_getSourceReference, _handleEOF, _releaseBuffers, _reportMismatchedEndMarker, _smileBufferRecycler, close, convertNumberToBigDecimal, convertNumberToBigInteger, convertNumberToDouble, convertNumberToFloat, convertNumberToInt, convertNumberToLong, getBigIntegerValue, getCurrentLocation, getCurrentName, getDecimalValue, getDoubleValue, getFloatValue, getFormatFeatures, getIntValue, getLongValue, getNumberType, getNumberValue, getParsingContext, getTokenLocation, isClosed, isNaN, mayContainRawBinary, overrideCurrentName, overrideFormatFeatures, version_ascii, _asciiBytes, _constructError, _decodeBase64, _getCharDesc, _handleUnrecognizedCharacterEscape, _hasTextualNull, _reportError, _reportError, _reportError, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOF, _reportInvalidEOFInValue, _reportInvalidEOFInValue, _reportMissingRootWS, _reportUnexpectedChar, _throwInternal, _throwInvalidSpace, _throwUnquotedSpace, _wrapError, clearCurrentToken, currentToken, currentTokenId, getCurrentToken, getCurrentTokenId, getLastClearedToken, getValueAsBoolean, getValueAsDouble, getValueAsInt, getValueAsInt, getValueAsLong, getValueAsLong, getValueAsString, getValueAsString, hasCurrentToken, hasToken, hasTokenId, isExpectedStartArrayToken, isExpectedStartObjectToken, nextToken, nextValue, reportInvalidNumber, reportOverflowInt, reportOverflowLong, reportUnexpectedNumberChar, skipChildren_codec, _constructError, _reportUnsupportedOperation, canReadObjectId, canReadTypeId, canUseSchema, configure, disable, enable, finishToken, getBinaryValue, getBooleanValue, getByteValue, getCurrentValue, getFeatureMask, getNonBlockingInputFeeder, getObjectId, getSchema, getShortValue, getTypeId, getValueAsBoolean, getValueAsDouble, isEnabled, nextBooleanValue, nextFieldName, nextFieldName, nextIntValue, nextLongValue, nextTextValue, overrideStdFeatures, readBinaryValue, readValueAs, readValueAs, readValueAsTree, readValuesAs, readValuesAs, releaseBuffered, requiresCustomCodec, setCurrentValue, setFeatureMask, setRequestPayloadOnError, setRequestPayloadOnError, setRequestPayloadOnError, setSchemaprotected static final int MAJOR_INITIAL
protected static final int MAJOR_ROOT
protected static final int MAJOR_OBJECT_FIELD
protected static final int MAJOR_OBJECT_VALUE
protected static final int MAJOR_ARRAY_ELEMENT
protected static final int MAJOR_CLOSED
protected static final int MINOR_HEADER_INITIAL
protected static final int MINOR_HEADER_INLINE
protected static final int MINOR_FIELD_NAME_2BYTE
protected static final int MINOR_FIELD_NAME_LONG
protected static final int MINOR_FIELD_NAME_SHORT_ASCII
protected static final int MINOR_FIELD_NAME_SHORT_UNICODE
protected static final int MINOR_VALUE_NUMBER_INT
protected static final int MINOR_VALUE_NUMBER_LONG
protected static final int MINOR_VALUE_NUMBER_FLOAT
protected static final int MINOR_VALUE_NUMBER_DOUBLE
protected static final int MINOR_VALUE_NUMBER_BIGINT_LEN
protected static final int MINOR_VALUE_NUMBER_BIGINT_BODY
protected static final int MINOR_VALUE_NUMBER_BIGDEC_SCALE
protected static final int MINOR_VALUE_NUMBER_BIGDEC_LEN
protected static final int MINOR_VALUE_NUMBER_BIGDEC_BODY
protected static final int MINOR_VALUE_STRING_SHORT_ASCII
protected static final int MINOR_VALUE_STRING_SHORT_UNICODE
protected static final int MINOR_VALUE_STRING_LONG_ASCII
protected static final int MINOR_VALUE_STRING_LONG_UNICODE
protected static final int MINOR_VALUE_STRING_SHARED_2BYTE
protected static final int MINOR_VALUE_BINARY_RAW_LEN
protected static final int MINOR_VALUE_BINARY_RAW_BODY
protected static final int MINOR_VALUE_BINARY_7BIT_LEN
protected static final int MINOR_VALUE_BINARY_7BIT_BODY
protected int _majorState
protected int _minorState
protected int _majorStateAfterValue
_majorState after completing a scalar valueprotected boolean _endOfInput
protected byte[] _inputCopy
protected int _inputCopyLen
_inputCopyprotected int _pending32
protected long _pending64
protected com.fasterxml.jackson.core.util.ByteArrayBuilder _byteArrayBuilder
public NonBlockingParserBase(com.fasterxml.jackson.core.io.IOContext ctxt,
                     int parserFeatures,
                     int smileFeatures,
                     com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer sym)
public com.fasterxml.jackson.core.ObjectCodec getCodec()
getCodec in class com.fasterxml.jackson.core.JsonParserpublic void setCodec(com.fasterxml.jackson.core.ObjectCodec c)
setCodec in class com.fasterxml.jackson.core.JsonParserpublic boolean canParseAsync()
canParseAsync in class com.fasterxml.jackson.core.JsonParserprotected void _releaseBuffers2()
_closeInput() (for
 example, when explicitly closing this reader instance), or
 separately (if need be)._releaseBuffers2 in class SmileParserBaseprotected com.fasterxml.jackson.core.sym.ByteQuadsCanonicalizer symbolTableForTests()
public abstract int releaseBuffered(OutputStream out) throws IOException
releaseBuffered in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic Object getInputSource()
getInputSource in class com.fasterxml.jackson.core.JsonParserprotected void _closeInput()
                    throws IOException
_closeInput in class SmileParserBaseIOExceptionprotected void _parseNumericValue()
                           throws IOException
_parseNumericValue in class SmileParserBaseIOExceptionpublic boolean hasTextCharacters()
hasTextCharacters in class com.fasterxml.jackson.core.base.ParserMinimalBasepublic String getText() throws IOException
ParserMinimalBase.nextToken(), or
 after encountering end-of-input), returns null.
 Method can be called for any event.getText in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic char[] getTextCharacters()
                         throws IOException
getTextCharacters in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic int getTextLength()
                  throws IOException
getTextLength in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic int getTextOffset()
                  throws IOException
getTextOffset in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic int getText(Writer w) throws IOException
getText in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic byte[] getBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant)
                      throws IOException
getBinaryValue in class com.fasterxml.jackson.core.base.ParserMinimalBaseIOExceptionpublic Object getEmbeddedObject() throws IOException
getEmbeddedObject in class com.fasterxml.jackson.core.JsonParserIOExceptionpublic int readBinaryValue(com.fasterxml.jackson.core.Base64Variant b64variant,
                  OutputStream out)
                    throws IOException
readBinaryValue in class com.fasterxml.jackson.core.JsonParserIOExceptionprotected final com.fasterxml.jackson.core.JsonToken _startArrayScope()
                                                               throws IOException
IOExceptionprotected final com.fasterxml.jackson.core.JsonToken _startObjectScope()
                                                                throws IOException
IOExceptionprotected final com.fasterxml.jackson.core.JsonToken _closeArrayScope()
                                                               throws IOException
IOExceptionprotected final com.fasterxml.jackson.core.JsonToken _closeObjectScope()
                                                                throws IOException
IOExceptionprotected final String _findDecodedFromSymbols(byte[] inBuf, int inPtr, int len) throws IOException
IOExceptionprotected final String[] _expandSeenNames(String[] oldShared)
protected final com.fasterxml.jackson.core.JsonToken _eofAsNextToken()
                                                              throws IOException
IOExceptionprotected final com.fasterxml.jackson.core.JsonToken _valueComplete(com.fasterxml.jackson.core.JsonToken t)
                                                             throws IOException
IOExceptionprotected final com.fasterxml.jackson.core.JsonToken _handleSharedString(int index)
                                                                  throws IOException
IOExceptionprotected final com.fasterxml.jackson.core.JsonToken _handleSharedName(int index)
                                                                throws IOException
IOExceptionprotected final void _addSeenStringValue(String v) throws IOException
IOExceptionpublic void _initByteArrayBuilder()
protected void _reportMissingHeader(int unmaskedFirstByte)
                             throws IOException
IOExceptionprotected void _reportInvalidSharedName(int index)
                                 throws IOException
IOExceptionprotected void _reportInvalidSharedStringValue(int index)
                                        throws IOException
IOExceptionprotected void _reportInvalidInitial(int mask)
                              throws com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.core.JsonParseExceptionprotected void _reportInvalidOther(int mask,
                       int ptr)
                            throws com.fasterxml.jackson.core.JsonParseException
com.fasterxml.jackson.core.JsonParseExceptionCopyright © 2017 FasterXML. All rights reserved.