JsonNode that implements JsonParser to allow
accessing contents of JSON tree in alternate form (stream of tokens).
Useful when a streaming source is expected by code, such as data binding
functionality.
| Modifier and Type | Field and Description |
|---|---|
| protected boolean | _closed
Flag that indicates whether parser is closed or not. |
| protected NodeCursor | _nodeCursor
Traversal context within tree |
| protected ObjectCodec |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | _handleEOF()
Implements abstract com. |
| public void | close()
Implements abstract com. Implements java. Feature#AUTO_CLOSE_SOURCE is enabled.
|
| protected JsonNode | |
| protected JsonNode | |
| 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 b64variant)Base64Variants for definitions
of "standard" variants).Implements abstract com. |
| public ObjectCodec | getCodec()
Implements abstract com. ObjectCodec associated with this
parser, if any.
|
| public JsonLocation | getCurrentLocation()
Implements abstract com. currentLocation(), to be deprecated in later
Jackson 2.x versions (and removed from Jackson 3.0).
|
| public String | getCurrentName()
Implements abstract com. currentName().
|
| 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 Object | getEmbeddedObject()
Overrides com. JsonToken#VALUE_EMBEDDED_OBJECT.
|
| 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 JsonStreamContext | getParsingContext()
Implements abstract com. |
| public JacksonFeatureSet | getReadCapabilities()
Overrides com. |
| public String | getText()
Implements abstract com. nextToken, or
after encountering end-of-input), returns null.
|
| public 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 int | getTextLength()
Implements abstract com. getTextCharacters, to know length
of String stored in returned buffer.
|
| public int | getTextOffset()
Implements abstract com. getTextCharacters, to know offset
of the first text content character within buffer.
|
| public JsonLocation | getTokenLocation()
Implements abstract com. currentTokenLocation(), to be deprecated in later
Jackson 2.x versions (and removed from Jackson 3.0).
|
| 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.
|
| public JsonToken | nextToken()
Implements abstract com. |
| public void | overrideCurrentName(String
Name to use as the current name; may be null. name)Implements abstract com. |
| public int | readBinaryValue(Base64Variant
base64 variant to use b64variant, OutputStream Output stream to use for passing decoded binary data out)Overrides com. readBinaryValue(OutputStream) but allows explicitly
specifying base64 variant to use.
|
| public void | setCodec(ObjectCodec
Codec to assign, if any; c)null if noneImplements abstract com. ObjectCodec associated with this
parser, if any.
|
| public JsonParser | skipChildren()
Overrides com. JsonToken#START_OBJECT or JsonToken#START_ARRAY.
|
| public Version | version()
Implements abstract com. Implements com. |