Example usage for Java android.util 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 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. |
boolean | hasNext() Returns true if the current array or object has another element. |
boolean | nextBoolean() Returns the JsonToken#BOOLEAN boolean value of the next token, consuming it. |
double | nextDouble() Returns the JsonToken#NUMBER double value of the next token, consuming it. |
int | nextInt() Returns the JsonToken#NUMBER int value of the next token, consuming it. |
long | nextLong() Returns the JsonToken#NUMBER long value of the next token, consuming it. |
String | nextName() Returns the next token, a 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 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 be liberal in what it accepts. |
void | skipValue() Skips the next value recursively. |