JsonParser
implementations, but does not add any additional fields that depend
on particular method of obtaining input.
Note that 'minimal' here mostly refers to minimal number of fields (size) and functionality that is specific to certain types of parser implementations; but not necessarily to number of methods.
| Modifier and Type | Field and Description |
|---|---|
| protected JsonToken | _currToken
Last token retrieved via |
| protected JsonToken | _lastClearedToken
Last cleared token, if any: that is, value that was in
effect when |
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigDecimal | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final BigInteger | |
| protected static final char | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | MAX_ERROR_TOKEN_LENGTH
Maximum number of characters to include in token reported as part of error messages. |
| protected static final double | |
| protected static final long | |
| protected static final double | |
| protected static final double | |
| protected static final long | |
| protected static final double | |
| protected static final byte[] | |
| protected static final int[] | |
| protected static final int | |
| protected static final int | |
| protected static final int | |
| protected static final int | NR_FLOAT
Note Not used by JSON implementation but used by many of binary codecs |
| protected static final int | |
| protected static final int | |
| protected static final int |
| Access | Constructor and Description |
|---|---|
| protected | |
| protected |
| Modifier and Type | Method and Description |
|---|---|
| protected static String | |
| protected static byte[] | |
| protected final JsonParseException | |
| protected void | _decodeBase64(String
String to decode str, ByteArrayBuilder Builder used to buffer binary content decoded builder, Base64Variant Base64 variant expected in content b64variant)Helper method that can be used for base64 decoding in cases where encoded content has already been read as a String. |
| protected static final String | |
| protected abstract void | _handleEOF()
Method sub-classes need to implement for verifying that end-of-content is acceptable at current input position. |
| protected boolean | Returns: True if given value contains "null equivalent" String value (for content this parser handles).String value to check value)Helper method used to determine whether we are currently pointing to a String value of "null" (NOT a null token); and, if so, that parser is to recognize and return it similar to if it was real null token. |
| protected String | |
| protected String | |
| protected final void | |
| protected final void | |
| protected final void | |
| protected void | |
| protected void | |
| protected void | |
| protected void | _reportInvalidEOF(String
Addition message snippet to append to base exception message msg)
Deprecated
Since 2.8 use
_reportInvalidEOF(String, JsonToken) instead
|
| protected void | |
| protected void | |
| protected void | |
| protected void | |
| protected <T> T | _reportUnexpectedNumberChar(int
Character that was unexpected ch, String Additional failure comment to add, if any comment)
|
| protected final void | |
| protected void | |
| protected final void | |
| public void | clearCurrentToken()
Implements abstract com. hasCurrentToken returns false, and
getCurrentToken null).
|
| public abstract void | close()
Redeclares java. Implements abstract com. Feature#AUTO_CLOSE_SOURCE is enabled.
|
| public JsonToken | currentToken()
Overrides com. |
| public int | currentTokenId()
Overrides com. getCurrentToken() but that returns an
int instead of JsonToken (enum value).
|
| public abstract byte[] | getBinaryValue(Base64Variant
Expected variant of base64 encoded
content (see b64variant)Base64Variants for definitions
of "standard" variants).Implements abstract com. |
| public abstract String | getCurrentName()
Implements abstract com. currentName().
|
| public JsonToken | getCurrentToken()
Implements abstract com. currentToken(), may be deprecated sometime after
Jackson 2.13 (will be removed from 3.0).
|
| public int | getCurrentTokenId()
Implements abstract com.
Deprecated
Deprecated alias for currentTokenId().
|
| public JsonToken | getLastClearedToken()
Implements abstract com. clearCurrentToken.
|
| public abstract JsonStreamContext | getParsingContext()
Implements abstract com. |
| public abstract String | getText()
Implements abstract com. nextToken, or
after encountering end-of-input), returns null.
|
| public abstract char[] | getTextCharacters()
Implements abstract com. getText, but that will return
underlying (unmodifiable) character array that contains
textual value, instead of constructing a String object
to contain this information.
|
| public abstract int | getTextLength()
Implements abstract com. getTextCharacters, to know length
of String stored in returned buffer.
|
| public abstract int | getTextOffset()
Implements abstract com. getTextCharacters, to know offset
of the first text content character within buffer.
|
| public boolean | getValueAsBoolean(boolean
Default value to return if conversion to defaultValue)boolean is not possibleOverrides com. |
| public double | getValueAsDouble(double
Default value to return if conversion to defaultValue)double is not possibleOverrides com. |
| public int | getValueAsInt()
Overrides com. int value.
|
| public int | getValueAsInt(int
Default value to return if conversion to defaultValue)int is not possibleOverrides com. |
| public long | getValueAsLong()
Overrides com. |
| public long | getValueAsLong(long
Default value to return if conversion to defaultValue)long is not possibleOverrides com. |
| public String | getValueAsString()
Overrides com. java..
|
| public String | getValueAsString(String
Default value to return if conversion to defaultValue)String is not possibleImplements abstract com. java..
|
| public boolean | hasCurrentToken()
Implements abstract com. |
| public abstract 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 | hasToken(JsonToken
Token to match t)Implements abstract com.
return currentToken() == t
but may be more efficiently implemented.
|
| public boolean | hasTokenId(int
Token id to match (from (@link JsonTokenId}) id)Implements abstract com.
return currentTokenId() == id
but may be more efficiently implemented.
|
| public abstract boolean | isClosed()
Implements abstract com. |
| public boolean | isExpectedNumberIntToken()
Overrides com. isExpectedStartArrayToken(), but checks whether stream
currently points to JsonToken#VALUE_NUMBER_INT.
|
| public boolean | isExpectedStartArrayToken()
Overrides com. JsonToken#START_ARRAY) when start array is expected.
|
| public boolean | isExpectedStartObjectToken()
Overrides com. isExpectedStartArrayToken(), but checks whether stream
currently points to JsonToken#START_OBJECT.
|
| public abstract JsonToken | nextToken()
Implements abstract com. |
| public JsonToken | nextValue()
Implements abstract com. |
| public abstract void | overrideCurrentName(String
Name to use as the current name; may be null. name)Implements abstract com. |
| protected void | reportInvalidNumber(String
Base exception message to use msg)Method called to throw an exception for input token that looks like a number based on first character(s), but is not valid according to rules of format. |
| protected void | reportOverflowInt()
Method called to throw an exception for integral (not floating point) input
token with value outside of Java signed 32-bit range when requested as |
| protected void | |
| protected void | |
| protected void | reportOverflowLong()
Method called to throw an exception for integral (not floating point) input
token with value outside of Java signed 64-bit range when requested as |
| protected void | |
| protected void | |
| protected void | |
| public JsonParser | skipChildren()
Implements abstract com. JsonToken#START_OBJECT or JsonToken#START_ARRAY.
|