java.lang.Object
tools.jackson.core.JsonParser
tools.jackson.core.base.ParserMinimalBase
tools.jackson.databind.util.TokenBuffer.Parser
- All Implemented Interfaces:
Closeable,AutoCloseable,Versioned
- Enclosing class:
- TokenBuffer
-
Nested Class Summary
Nested classes/interfaces inherited from class tools.jackson.core.JsonParser
JsonParser.NumberType, JsonParser.NumberTypeFP -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ByteArrayBuilderprotected booleanprotected final booleanprotected final booleanprotected final booleanprotected TokenStreamLocationprotected TokenBufferReadContextInformation about parser context, context in which the next token is to be parsed (root, array, object).protected TokenBuffer.SegmentCurrently active segmentprotected intPointer to current token within current segmentprotected final TokenBufferprotected StreamReadConstraintsFields 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_RS, 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_DEFAULTSFields inherited from class tools.jackson.core.JsonParser
DEFAULT_READ_CAPABILITIES -
Constructor Summary
ConstructorsConstructorDescriptionParser(ObjectReadContext readCtxt, TokenBuffer source, TokenBuffer.Segment firstSeg, boolean hasNativeTypeIds, boolean hasNativeObjectIds, TokenStreamContext parentContext, StreamReadConstraints streamReadConstraints) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected intprotected longprotected final Objectprotected voidprotected voidvoidbooleanbooleanvoidclose()byte[]getBinaryValue(Base64Variant b64variant) doublefloatintlongfinal Numberchar[]intintbooleanbooleanisClosed()booleanisNaN()nextName()intnextNameMatch(PropertyNameMatcher matcher) intreadBinaryValue(Base64Variant b64variant, OutputStream out) voidversion()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, _reportInvalidUTF8Surrogate, _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, streamReadFeaturesMethods 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
-
Field Details
-
_streamReadConstraints
-
_source
-
_hasNativeTypeIds
protected final boolean _hasNativeTypeIds -
_hasNativeObjectIds
protected final boolean _hasNativeObjectIds -
_hasNativeIds
protected final boolean _hasNativeIds -
_segment
Currently active segment -
_segmentPtr
protected int _segmentPtrPointer to current token within current segment -
_parsingContext
Information about parser context, context in which the next token is to be parsed (root, array, object). -
_closed
protected boolean _closed -
_byteBuilder
-
_location
-
-
Constructor Details
-
Parser
public Parser(ObjectReadContext readCtxt, TokenBuffer source, TokenBuffer.Segment firstSeg, boolean hasNativeTypeIds, boolean hasNativeObjectIds, TokenStreamContext parentContext, StreamReadConstraints streamReadConstraints)
-
-
Method Details
-
setLocation
-
version
- Specified by:
versionin interfaceVersioned- Specified by:
versionin classJsonParser
-
streamReadCapabilities
- Overrides:
streamReadCapabilitiesin classParserMinimalBase
-
streamReadInputSource
- Specified by:
streamReadInputSourcein classJsonParser
-
streamReadConstraints
- Overrides:
streamReadConstraintsin classParserMinimalBase
-
peekNextToken
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classParserMinimalBase
-
_closeInput
- Specified by:
_closeInputin classParserMinimalBase- Throws:
IOException
-
_releaseBuffers
protected void _releaseBuffers()- Specified by:
_releaseBuffersin classParserMinimalBase
-
nextToken
- Specified by:
nextTokenin classJsonParser
-
nextName
- Overrides:
nextNamein classParserMinimalBase
-
nextNameMatch
- Overrides:
nextNameMatchin classParserMinimalBase
-
isClosed
public boolean isClosed()- Overrides:
isClosedin classParserMinimalBase
-
streamReadContext
- Specified by:
streamReadContextin classJsonParser
-
assignCurrentValue
- Specified by:
assignCurrentValuein classJsonParser
-
currentValue
- Specified by:
currentValuein classJsonParser
-
currentTokenLocation
- Specified by:
currentTokenLocationin classJsonParser
-
currentLocation
- Specified by:
currentLocationin classJsonParser
-
currentName
- Specified by:
currentNamein classJsonParser
-
getString
- Specified by:
getStringin classJsonParser
-
getStringCharacters
public char[] getStringCharacters()- Specified by:
getStringCharactersin classJsonParser
-
getStringLength
public int getStringLength()- Specified by:
getStringLengthin classJsonParser
-
getStringOffset
public int getStringOffset()- Specified by:
getStringOffsetin classJsonParser
-
hasStringCharacters
public boolean hasStringCharacters()- Specified by:
hasStringCharactersin classJsonParser
-
isNaN
public boolean isNaN()- Specified by:
isNaNin classJsonParser
-
getBigIntegerValue
- Specified by:
getBigIntegerValuein classJsonParser
-
getDecimalValue
- Specified by:
getDecimalValuein classJsonParser
-
getDoubleValue
public double getDoubleValue()- Specified by:
getDoubleValuein classJsonParser
-
getFloatValue
public float getFloatValue()- Specified by:
getFloatValuein classJsonParser
-
getIntValue
public int getIntValue()- Specified by:
getIntValuein classJsonParser
-
getLongValue
public long getLongValue()- Specified by:
getLongValuein classJsonParser
-
getNumberType
- Specified by:
getNumberTypein classJsonParser
-
getNumberTypeFP
- Overrides:
getNumberTypeFPin classParserMinimalBase
-
getNumberValue
- Specified by:
getNumberValuein classJsonParser
-
getNumberValueDeferred
- Overrides:
getNumberValueDeferredin classParserMinimalBase
-
_convertNumberToInt
- Throws:
InputCoercionException
-
_convertNumberToLong
- Throws:
InputCoercionException
-
getEmbeddedObject
- Overrides:
getEmbeddedObjectin classParserMinimalBase
-
getBinaryValue
- Specified by:
getBinaryValuein classJsonParser- Throws:
JacksonException
-
readBinaryValue
- Overrides:
readBinaryValuein classJsonParser- Throws:
JacksonException
-
canReadObjectId
public boolean canReadObjectId()- Overrides:
canReadObjectIdin classJsonParser
-
canReadTypeId
public boolean canReadTypeId()- Overrides:
canReadTypeIdin classJsonParser
-
getTypeId
- Overrides:
getTypeIdin classJsonParser
-
getObjectId
- Overrides:
getObjectIdin classJsonParser
-
_currentObject
-
_handleEOF
protected void _handleEOF()- Specified by:
_handleEOFin classParserMinimalBase
-