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 ByteArrayBuilder
protected boolean
protected final boolean
protected final boolean
protected final boolean
protected TokenStreamLocation
protected TokenBufferReadContext
Information about parser context, context in which the next token is to be parsed (root, array, object).protected TokenBuffer.Segment
Currently active segmentprotected int
Pointer to current token within current segmentprotected final TokenBuffer
protected 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_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_DEFAULTS
Fields 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 void
protected int
protected long
protected final Object
protected void
protected void
void
boolean
boolean
void
close()
byte[]
getBinaryValue
(Base64Variant b64variant) double
float
int
long
final Number
char[]
int
int
boolean
boolean
isClosed()
boolean
isNaN()
nextName()
int
nextNameMatch
(PropertyNameMatcher matcher) int
readBinaryValue
(Base64Variant b64variant, OutputStream out) void
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
-
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:
version
in interfaceVersioned
- Specified by:
version
in classJsonParser
-
streamReadCapabilities
- Overrides:
streamReadCapabilities
in classParserMinimalBase
-
streamReadInputSource
- Specified by:
streamReadInputSource
in classJsonParser
-
streamReadConstraints
- Overrides:
streamReadConstraints
in classParserMinimalBase
-
peekNextToken
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classParserMinimalBase
-
_closeInput
- Specified by:
_closeInput
in classParserMinimalBase
- Throws:
IOException
-
_releaseBuffers
protected void _releaseBuffers()- Specified by:
_releaseBuffers
in classParserMinimalBase
-
nextToken
- Specified by:
nextToken
in classJsonParser
-
nextName
- Overrides:
nextName
in classParserMinimalBase
-
nextNameMatch
- Overrides:
nextNameMatch
in classParserMinimalBase
-
isClosed
public boolean isClosed()- Overrides:
isClosed
in classParserMinimalBase
-
streamReadContext
- Specified by:
streamReadContext
in classJsonParser
-
assignCurrentValue
- Specified by:
assignCurrentValue
in classJsonParser
-
currentValue
- Specified by:
currentValue
in classJsonParser
-
currentTokenLocation
- Specified by:
currentTokenLocation
in classJsonParser
-
currentLocation
- Specified by:
currentLocation
in classJsonParser
-
currentName
- Specified by:
currentName
in classJsonParser
-
getString
- Specified by:
getString
in classJsonParser
-
getStringCharacters
public char[] getStringCharacters()- Specified by:
getStringCharacters
in classJsonParser
-
getStringLength
public int getStringLength()- Specified by:
getStringLength
in classJsonParser
-
getStringOffset
public int getStringOffset()- Specified by:
getStringOffset
in classJsonParser
-
hasStringCharacters
public boolean hasStringCharacters()- Specified by:
hasStringCharacters
in classJsonParser
-
isNaN
public boolean isNaN()- Specified by:
isNaN
in classJsonParser
-
getBigIntegerValue
- Specified by:
getBigIntegerValue
in classJsonParser
-
getDecimalValue
- Specified by:
getDecimalValue
in classJsonParser
-
getDoubleValue
public double getDoubleValue()- Specified by:
getDoubleValue
in classJsonParser
-
getFloatValue
public float getFloatValue()- Specified by:
getFloatValue
in classJsonParser
-
getIntValue
public int getIntValue()- Specified by:
getIntValue
in classJsonParser
-
getLongValue
public long getLongValue()- Specified by:
getLongValue
in classJsonParser
-
getNumberType
- Specified by:
getNumberType
in classJsonParser
-
getNumberTypeFP
- Overrides:
getNumberTypeFP
in classParserMinimalBase
-
getNumberValue
- Specified by:
getNumberValue
in classJsonParser
-
getNumberValueDeferred
- Overrides:
getNumberValueDeferred
in classParserMinimalBase
-
_convertNumberToInt
- Throws:
InputCoercionException
-
_convertNumberToLong
- Throws:
InputCoercionException
-
getEmbeddedObject
- Overrides:
getEmbeddedObject
in classParserMinimalBase
-
getBinaryValue
- Specified by:
getBinaryValue
in classJsonParser
- Throws:
JacksonException
-
readBinaryValue
- Overrides:
readBinaryValue
in classJsonParser
- Throws:
JacksonException
-
canReadObjectId
public boolean canReadObjectId()- Overrides:
canReadObjectId
in classJsonParser
-
canReadTypeId
public boolean canReadTypeId()- Overrides:
canReadTypeId
in classJsonParser
-
getTypeId
- Overrides:
getTypeId
in classJsonParser
-
getObjectId
- Overrides:
getObjectId
in classJsonParser
-
_currentObject
-
_handleEOF
protected void _handleEOF()- Specified by:
_handleEOF
in classParserMinimalBase
-