Example usage for Java com.google.gson.stream JsonReader fields, constructors, methods, implement or subclass
The text is from its open source code.
JsonReader(Reader in) Creates a new instance that reads a JSON-encoded stream from in . |
void | beginArray() Consumes the next token from the JSON stream and asserts that it is the beginning of a new array. |
void | beginObject() Consumes the next token from the JSON stream and asserts that it is the beginning of a new object. |
void | close() Closes this JSON reader and the underlying java.io.Reader . |
void | endArray() Consumes the next token from the JSON stream and asserts that it is the end of the current array. |
void | endObject() Consumes the next token from the JSON stream and asserts that it is the end of the current object. |
String | getPath() Returns a JsonPath to the current location in the JSON value. |
boolean | hasNext() Returns true if the current array or object has another element. |
boolean | isLenient() Returns true if this parser is liberal in what it accepts. |
boolean | nextBoolean() Returns the com.google.gson.stream.JsonToken#BOOLEAN boolean value of the next token, consuming it. |
double | nextDouble() Returns the com.google.gson.stream.JsonToken#NUMBER double value of the next token, consuming it. |
int | nextInt() Returns the com.google.gson.stream.JsonToken#NUMBER int value of the next token, consuming it. |
long | nextLong() Returns the com.google.gson.stream.JsonToken#NUMBER long value of the next token, consuming it. |
String | nextName() Returns the next token, a com.google.gson.stream.JsonToken#NAME property name , and consumes it. |
void | nextNull() Consumes the next token from the JSON stream and asserts that it is a literal null. |
String | nextString() Returns the com.google.gson.stream.JsonToken#STRING string value of the next token, consuming it. |
JsonToken | peek() Returns the type of the next token without consuming it. |
void | setLenient(boolean lenient) Configure this parser to be liberal in what it accepts. |
void | skipValue() Skips the next value recursively. |