public interface CookJsonParser extends JsonParser
JsonParser.Event
Modifier and Type | Method and Description |
---|---|
byte[] |
getBytes()
Returns the
byte[] value if the parser state is
JsonParser.Event.VALUE_STRING and the data is actually a binary data. |
JsonParser.Event |
getEvent()
Gets the current event.
|
JsonValue |
getValue()
Based on the current event, retrieve the JsonValue.
|
boolean |
isBinary()
Returns true if the current JSON value at the current parser state is
actually a binary data.
|
close, getBigDecimal, getInt, getLocation, getLong, getString, hasNext, isIntegralNumber, next
JsonParser.Event getEvent()
JsonValue getValue()
In case of START_OBJECT and START_ARRAY, JsonObject and JsonArray objects are returned. This feature is to allow the mixing of streaming and model based APIs.
boolean isBinary()
IllegalStateException
- if the current parser state is not VALUE_STRING
byte[] getBytes()
byte[]
value if the parser state is
JsonParser.Event.VALUE_STRING
and the data is actually a binary data.IllegalStateException
- if the current parser state is not VALUE_STRING
or the current value is not binary.Copyright © 2016. All rights reserved.