public class JsonStructureParser extends Object implements CookJsonParser
JsonParser.Event| Constructor and Description |
|---|
JsonStructureParser(JsonStructure s) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
BigDecimal |
getBigDecimal() |
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.
|
int |
getInt() |
JsonLocation |
getLocation() |
long |
getLong() |
String |
getString() |
JsonValue |
getValue()
Based on the current event, retrieve the JsonValue.
|
boolean |
hasNext() |
boolean |
isBinary()
Returns true if the current JSON value at the current parser state is
actually a binary data.
|
boolean |
isIntegralNumber() |
JsonParser.Event |
next() |
public JsonStructureParser(JsonStructure s)
public boolean hasNext()
hasNext in interface JsonParserpublic JsonParser.Event next()
next in interface JsonParserpublic String getString()
getString in interface JsonParserpublic boolean isBinary()
CookJsonParserisBinary in interface CookJsonParserpublic byte[] getBytes()
CookJsonParserbyte[] value if the parser state is
JsonParser.Event.VALUE_STRING and the data is actually a binary data.getBytes in interface CookJsonParserpublic boolean isIntegralNumber()
isIntegralNumber in interface JsonParserpublic int getInt()
getInt in interface JsonParserpublic long getLong()
getLong in interface JsonParserpublic BigDecimal getBigDecimal()
getBigDecimal in interface JsonParserpublic JsonLocation getLocation()
getLocation in interface JsonParserpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface JsonParserpublic JsonParser.Event getEvent()
CookJsonParsergetEvent in interface CookJsonParserpublic JsonValue getValue()
CookJsonParserIn 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.
getValue in interface CookJsonParserCopyright © 2016. All rights reserved.