Uses of Class
com.google.gson.stream.JsonWriter
-
Packages that use JsonWriter Package Description com.google.gson This package provides theGson
class to convert Json to Java and vice-versa.com.google.gson.stream This package provides classes for processing JSON in an efficient streaming way. -
-
Uses of JsonWriter in com.google.gson
Methods in com.google.gson that return JsonWriter Modifier and Type Method Description JsonWriter
Gson. newJsonWriter(Writer writer)
Returns a new JSON writer configured for the settings on this Gson instance.Methods in com.google.gson with parameters of type JsonWriter Modifier and Type Method Description void
Gson. toJson(JsonElement jsonElement, JsonWriter writer)
Writes the JSON forjsonElement
towriter
.void
Gson. toJson(Object src, Type typeOfSrc, JsonWriter writer)
Writes the JSON representation ofsrc
of typetypeOfSrc
towriter
.abstract void
TypeAdapter. write(JsonWriter out, T value)
Writes one JSON value (an array, object, string, number, boolean or null) forvalue
. -
Uses of JsonWriter in com.google.gson.stream
Methods in com.google.gson.stream that return JsonWriter Modifier and Type Method Description JsonWriter
JsonWriter. beginArray()
Begins encoding a new array.JsonWriter
JsonWriter. beginObject()
Begins encoding a new object.JsonWriter
JsonWriter. endArray()
Ends encoding the current array.JsonWriter
JsonWriter. endObject()
Ends encoding the current object.JsonWriter
JsonWriter. jsonValue(String value)
Writesvalue
directly to the writer without quoting or escaping.JsonWriter
JsonWriter. name(String name)
Encodes the property name.JsonWriter
JsonWriter. nullValue()
Encodesnull
.JsonWriter
JsonWriter. value(boolean value)
Encodesvalue
.JsonWriter
JsonWriter. value(double value)
Encodesvalue
.JsonWriter
JsonWriter. value(float value)
Encodesvalue
.JsonWriter
JsonWriter. value(long value)
Encodesvalue
.JsonWriter
JsonWriter. value(Boolean value)
Encodesvalue
.JsonWriter
JsonWriter. value(Number value)
Encodesvalue
.JsonWriter
JsonWriter. value(String value)
Encodesvalue
.
-