JsonParser
implementations. Contains most common things that are independent
of actual underlying input source.
| Modifier and Type | Field and Description |
|---|---|
| protected byte[] | _binaryValue
We will hold on to decoded binary data, for duration of
current event, so that multiple calls to
|
| protected ByteArrayBuilder | _byteArrayBuilder
ByteArrayBuilder is needed if 'getBinaryValue' is called. |
| protected boolean | _closed
Flag that indicates whether parser is closed or not. |
| protected long | _currInputProcessed
Number of characters/bytes that were contained in previous blocks (blocks that were already processed prior to the current buffer). |
| protected int | _currInputRow
Current row location of current point in input buffer, starting from 1, if available. |
| protected int | _currInputRowStart
Current index of the first character of the current row in input buffer. |
| protected int | _expLength
Length of the exponent part of the number, if any, not including 'e' marker or sign, just digits. |
| protected int | _fractLength
Length of the fractional part (not including decimal point or exponent), in characters. |
| protected int | _inputEnd
Index of character after last available one in the buffer. |
| protected int | _inputPtr
Pointer to next available character in buffer |
| protected int | _intLength
Length of integer part of the number, in characters |
| protected final IOContext | _ioContext
I/O context for this reader. |
| protected boolean | _nameCopied
Flag 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[] | _nameCopyBuffer
Temporary buffer that is needed if field name is accessed
using |
| protected JsonToken | _nextToken
Secondary token related to the next token after current one; used if its type is known. |
| protected BigDecimal | |
| protected BigInteger | |
| protected double | |
| protected float | |
| protected int | |
| protected long | |
| protected boolean | _numberNegative
Flag that indicates whether numeric value has a negative value. |
| protected String | _numberString
Textual number representation captured from input in cases lazy-parsing is desired. |
| protected int | _numTypesValid
Bitfield that indicates which numeric representations have been calculated for the current type |
| protected JsonReadContext | _parsingContext
Information about parser context, context in which the next token is to be parsed (root, array, object). |
| protected final StreamReadConstraints | |
| protected final TextBuffer | _textBuffer
Buffer 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 | _tokenInputCol
Column on input row that current token starts; 0-based (although in the end it'll be converted to 1-based) |
| protected int | _tokenInputRow
Input row on which current token starts, 1-based |
| protected long | _tokenInputTotal
Total number of bytes/characters read before start of current token. |
| protected static final JacksonFeatureSet |
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected void | _checkStdFeatureChanges(int
Bitflag of standard features after they were changed newFeatureFlags, int Bitflag of standard features for which setting
did change changedFeatures)Helper method called to verify changes to standard features. |
| protected abstract void | |
| protected ContentReference | Returns: ContentReference object to use.Helper method used to encapsulate logic of including (or not) of
"content reference" when constructing |
| protected ContentReference | Returns: ContentReference object to use when source is not to be includedHelper method used to encapsulate logic of providing
"content reference" when constructing |
| protected BigInteger | |
| protected final int | |
| protected final int | |
| protected char | Returns: Character decoded, if anyMethod that sub-classes must implement to support escaped sequences in base64-encoded sections. |
| protected final int | |
| protected void | |
| protected BigDecimal | Returns: BigDecimal value of the current tokenInternal accessor that needs to be used for accessing number value of type
|
| protected BigInteger | Returns: BigInteger value of the current tokenInternal accessor that needs to be used for accessing number value of type
|
| public ByteArrayBuilder | |
| protected double | Returns: double value of the current tokenInternal accessor that needs to be used for accessing number value of type
|
| protected float | Returns: float value of the current tokenInternal accessor that needs to be used for accessing number value of type
|
| protected Object | Returns: Source reference
Deprecated
Since 2.13, use
_contentReference() instead.
|
| protected int[] | |
| protected void | |
| protected void | _handleEOF()
Implements abstract com. |
| protected char | |
| protected int | |
| protected void | _parseNumericValue(int
Numeric type that we will immediately need, if any;
mostly necessary to optimize handling of floating point numbers expType)Method that will parse actual numeric value out of a syntactically valid number value. |
| private void | |
| private void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | _throwUnquotedSpace(int
Invalid control character i, String Addition description of context to use in exception message ctxtDesc)Method called to report a problem with unquoted control character. |
| protected String | Returns: Description to use as "valid tokens" in an exception message about invalid (unrecognized) JSON token: called when parser finds something that looks like unquoted textual token
|
| protected String | Returns: Description to use as "valid JSON values" in an exception message about invalid (unrecognized) JSON value: called when parser finds something that does not look like a value or separator.
|
| public void | close()
Implements abstract com. Implements java. Feature#AUTO_CLOSE_SOURCE is enabled.
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| public JsonParser | disable(JsonParser.
Feature to disable fOverrides com. Feature for list of features)
|
| public JsonParser | enable(JsonParser.
Feature to enable fOverrides com. Feature for list of features)
|
| public BigInteger | getBigIntegerValue()
Implements abstract com. JsonToken#VALUE_NUMBER_INT and
it can not be used as a Java long primitive type due to its
magnitude.
|
| public byte[] | getBinaryValue(Base64Variant
Expected variant of base64 encoded
content (see variant)Base64Variants for definitions
of "standard" variants).Implements abstract com. |
| public JsonLocation | getCurrentLocation()
Implements abstract com. |
| public String | getCurrentName()
Implements abstract com. |
| public Object | getCurrentValue()
Overrides com. currentValue(), to be deprecated in later
Jackson 2.x versions (and removed from Jackson 3.0).
|
| public BigDecimal | getDecimalValue()
Implements abstract com. JsonToken#VALUE_NUMBER_FLOAT or
JsonToken#VALUE_NUMBER_INT.
|
| public double | getDoubleValue()
Implements abstract com. JsonToken#VALUE_NUMBER_FLOAT and
it can be expressed as a Java double primitive type.
|
| public float | getFloatValue()
Implements abstract com. JsonToken#VALUE_NUMBER_FLOAT and
it can be expressed as a Java float primitive type.
|
| public int | getIntValue()
Implements abstract com. JsonToken#VALUE_NUMBER_INT and
it can be expressed as a value of Java int primitive type.
|
| public long | getLongValue()
Implements abstract com. JsonToken#VALUE_NUMBER_INT and
it can be expressed as a Java long primitive type.
|
| public JsonParser. | getNumberType()
Implements abstract com. JsonToken#VALUE_NUMBER_INT or
JsonToken#VALUE_NUMBER_FLOAT, returns
one of NumberType constants; otherwise returns null.
|
| public Number | getNumberValue()
Implements abstract com. |
| public Object | getNumberValueDeferred()
Overrides com. getNumberValue but that returns
either same Number value as getNumberValue()
(if already decoded), or String representation of
as-of-yet undecoded number.
|
| public Number | getNumberValueExact()
Overrides com. getNumberValue with the difference that
for floating-point numbers value returned may be BigDecimal
if the underlying format does not store floating-point numbers using
native representation: for example, textual formats represent numbers
as Strings (which are 10-based), and conversion to java.
is potentially lossy operation.
|
| public JsonReadContext | getParsingContext()
Implements abstract com. |
| public long | |
| public int | |
| public int | |
| public JsonLocation | getTokenLocation()
Implements abstract com. |
| protected static int[] | |
| public boolean | hasTextCharacters()
Implements abstract com. getTextCharacters would be the most efficient
way to access textual content for the event parser currently
points to.
|
| public boolean | isClosed()
Implements abstract com. |
| public boolean | isNaN()
Overrides com. JsonToken#VALUE_NUMBER_FLOAT.
|
| protected boolean | |
| protected void | |
| public void | overrideCurrentName(String
Name to use as the current name; may be null. name)Implements abstract com. |
| public JsonParser | overrideStdFeatures(int
Bit mask of set/clear state for features to change values, int Bit mask of features to change mask)Overrides com. mask.
|
| protected IllegalArgumentException | |
| protected IllegalArgumentException | |
| protected final JsonToken | |
| protected final JsonToken | |
| protected final JsonToken | |
| protected final JsonToken | |
| public void | setCurrentValue(Object
Current value to assign for the current input context of this parser v)Overrides com. assignCurrentValue, to be deprecated in later
Jackson 2.x versions (and removed from Jackson 3.0).
|
| public JsonParser | setFeatureMask(int
Bit mask that defines set of features to enable newMask)Overrides com.
Deprecated
Bulk set method for (re)setting states of all standard Features
|
| public StreamReadConstraints | streamReadConstraints()
Overrides com. |
| public Version | version()
Implements abstract com. Implements com. |