Java android.util JsonReader fields, constructors, methods, implement or subclass

Example usage for Java android.util JsonReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.util JsonReader.

The text is from its open source code.

Constructor

JsonReader(Reader in)
Creates a new instance that reads a JSON-encoded stream from in .

Method

voidbeginArray()
Consumes the next token from the JSON stream and asserts that it is the beginning of a new array.
voidbeginObject()
Consumes the next token from the JSON stream and asserts that it is the beginning of a new object.
voidclose()
Closes this JSON reader and the underlying Reader .
voidendArray()
Consumes the next token from the JSON stream and asserts that it is the end of the current array.
voidendObject()
Consumes the next token from the JSON stream and asserts that it is the end of the current object.
booleanhasNext()
Returns true if the current array or object has another element.
booleannextBoolean()
Returns the JsonToken#BOOLEAN boolean value of the next token, consuming it.
doublenextDouble()
Returns the JsonToken#NUMBER double value of the next token, consuming it.
intnextInt()
Returns the JsonToken#NUMBER int value of the next token, consuming it.
longnextLong()
Returns the JsonToken#NUMBER long value of the next token, consuming it.
StringnextName()
Returns the next token, a JsonToken#NAME property name , and consumes it.
voidnextNull()
Consumes the next token from the JSON stream and asserts that it is a literal null.
StringnextString()
Returns the JsonToken#STRING string value of the next token, consuming it.
JsonTokenpeek()
Returns the type of the next token without consuming it.
voidsetLenient(boolean lenient)
Configure this parser to be be liberal in what it accepts.
voidskipValue()
Skips the next value recursively.