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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

JsonWriter(Writer out)
Creates a new instance that writes a JSON-encoded stream to out .

Method

JsonWriterbeginArray()
Begins encoding a new array.
JsonWriterbeginObject()
Begins encoding a new object.
voidclose()
Flushes and closes this writer and the underlying Writer .
JsonWriterendArray()
Ends encoding the current array.
JsonWriterendObject()
Ends encoding the current object.
voidflush()
Ensures all buffered data is written to the underlying Writer and flushes that writer.
booleangetSerializeNulls()
Returns true if object members are serialized when their value is null.
JsonWriterjsonValue(String value)
Writes value directly to the writer without quoting or escaping.
JsonWritername(String name)
Encodes the property name.
JsonWriternullValue()
Encodes null .
voidsetHtmlSafe(boolean htmlSafe)
Configure this writer to emit JSON that's safe for direct inclusion in HTML and XML documents.
voidsetIndent(String indent)
Sets the indentation string to be repeated for each level of indentation in the encoded document.
voidsetLenient(boolean lenient)
Configure this writer to relax its syntax rules.
voidsetSerializeNulls(boolean serializeNulls)
Sets whether object members are serialized when their value is null.
JsonWritervalue(String value)
Encodes value .
JsonWritervalue(boolean value)
Encodes value .
JsonWritervalue(Boolean value)
Encodes value .
JsonWritervalue(double value)
Encodes value .
JsonWritervalue(long value)
Encodes value .
JsonWritervalue(Number value)
Encodes value .