Java com.google.gson.stream JsonReader fields, constructors, methods, implement or subclass

Example usage for Java com.google.gson.stream JsonReader fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.gson.stream JsonReader.

The text is from its open source code.

Subclass

com.google.gson.stream.JsonReader has subclasses.
Click this link to see all its subclasses.

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 java.io.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.
StringgetPath()
Returns a JsonPath to the current location in the JSON value.
booleanhasNext()
Returns true if the current array or object has another element.
booleanisLenient()
Returns true if this parser is liberal in what it accepts.
booleannextBoolean()
Returns the com.google.gson.stream.JsonToken#BOOLEAN boolean value of the next token, consuming it.
doublenextDouble()
Returns the com.google.gson.stream.JsonToken#NUMBER double value of the next token, consuming it.
intnextInt()
Returns the com.google.gson.stream.JsonToken#NUMBER int value of the next token, consuming it.
longnextLong()
Returns the com.google.gson.stream.JsonToken#NUMBER long value of the next token, consuming it.
StringnextName()
Returns the next token, a com.google.gson.stream.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 com.google.gson.stream.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 liberal in what it accepts.
voidskipValue()
Skips the next value recursively.