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.graph com.google.gson.interceptors com.google.gson.internal Do NOT use any class in this package as they are meant for internal use in Gson.com.google.gson.internal.bind com.google.gson.internal.sql com.google.gson.stream This package provides classes for processing JSON in an efficient streaming way.com.google.gson.typeadapters -
-
Uses of JsonWriter in com.google.gson
Methods in com.google.gson that return JsonWriter Modifier and Type Method Description JsonWriter
Gson. newJsonWriter(java.io.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(java.lang.Object src, java.lang.reflect.Type typeOfSrc, JsonWriter writer)
Writes the JSON representation ofsrc
of typetypeOfSrc
towriter
.void
Gson.FutureTypeAdapter. write(JsonWriter out, T value)
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.graph
Methods in com.google.gson.graph with parameters of type JsonWriter Modifier and Type Method Description (package private) void
GraphAdapterBuilder.Element. write(JsonWriter out)
-
Uses of JsonWriter in com.google.gson.interceptors
Methods in com.google.gson.interceptors with parameters of type JsonWriter Modifier and Type Method Description void
InterceptorFactory.InterceptorAdapter. write(JsonWriter out, T value)
-
Uses of JsonWriter in com.google.gson.internal
Methods in com.google.gson.internal with parameters of type JsonWriter Modifier and Type Method Description static void
Streams. write(JsonElement element, JsonWriter writer)
Writes the JSON element to the writer, recursively. -
Uses of JsonWriter in com.google.gson.internal.bind
Subclasses of JsonWriter in com.google.gson.internal.bind Modifier and Type Class Description class
JsonTreeWriter
This writer creates a JsonElement.Methods in com.google.gson.internal.bind that return JsonWriter Modifier and Type Method Description JsonWriter
JsonTreeWriter. beginArray()
JsonWriter
JsonTreeWriter. beginObject()
JsonWriter
JsonTreeWriter. endArray()
JsonWriter
JsonTreeWriter. endObject()
JsonWriter
JsonTreeWriter. jsonValue(java.lang.String value)
JsonWriter
JsonTreeWriter. name(java.lang.String name)
JsonWriter
JsonTreeWriter. nullValue()
JsonWriter
JsonTreeWriter. value(boolean value)
JsonWriter
JsonTreeWriter. value(double value)
JsonWriter
JsonTreeWriter. value(float value)
JsonWriter
JsonTreeWriter. value(long value)
JsonWriter
JsonTreeWriter. value(java.lang.Boolean value)
JsonWriter
JsonTreeWriter. value(java.lang.Number value)
JsonWriter
JsonTreeWriter. value(java.lang.String value)
Methods in com.google.gson.internal.bind with parameters of type JsonWriter Modifier and Type Method Description void
ArrayTypeAdapter. write(JsonWriter out, java.lang.Object array)
void
CollectionTypeAdapterFactory.Adapter. write(JsonWriter out, java.util.Collection<E> collection)
void
DateTypeAdapter. write(JsonWriter out, java.util.Date value)
void
DefaultDateTypeAdapter. write(JsonWriter out, java.util.Date value)
void
MapTypeAdapterFactory.Adapter. write(JsonWriter out, java.util.Map<K,V> map)
void
NumberTypeAdapter. write(JsonWriter out, java.lang.Number value)
void
ObjectTypeAdapter. write(JsonWriter out, java.lang.Object value)
void
ReflectiveTypeAdapterFactory.Adapter. write(JsonWriter out, T value)
(package private) abstract void
ReflectiveTypeAdapterFactory.BoundField. write(JsonWriter writer, java.lang.Object source)
Read this field value from the source, and append its JSON value to the writervoid
TreeTypeAdapter. write(JsonWriter out, T value)
void
TypeAdapterRuntimeTypeWrapper. write(JsonWriter out, T value)
void
TypeAdapters.EnumTypeAdapter. write(JsonWriter out, T value)
-
Uses of JsonWriter in com.google.gson.internal.sql
Methods in com.google.gson.internal.sql with parameters of type JsonWriter Modifier and Type Method Description void
SqlDateTypeAdapter. write(JsonWriter out, java.sql.Date value)
void
SqlTimestampTypeAdapter. write(JsonWriter out, java.sql.Timestamp value)
void
SqlTimeTypeAdapter. write(JsonWriter out, java.sql.Time value)
-
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.private JsonWriter
JsonWriter. close(int empty, int nonempty, char closeBracket)
Closes the current scope by appending any necessary whitespace and the given bracket.JsonWriter
JsonWriter. endArray()
Ends encoding the current array.JsonWriter
JsonWriter. endObject()
Ends encoding the current object.JsonWriter
JsonWriter. jsonValue(java.lang.String value)
Writesvalue
directly to the writer without quoting or escaping.JsonWriter
JsonWriter. name(java.lang.String name)
Encodes the property name.JsonWriter
JsonWriter. nullValue()
Encodesnull
.private JsonWriter
JsonWriter. open(int empty, char openBracket)
Enters a new scope by appending any necessary whitespace and the given bracket.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(java.lang.Boolean value)
Encodesvalue
.JsonWriter
JsonWriter. value(java.lang.Number value)
Encodesvalue
.JsonWriter
JsonWriter. value(java.lang.String value)
Encodesvalue
. -
Uses of JsonWriter in com.google.gson.typeadapters
Methods in com.google.gson.typeadapters with parameters of type JsonWriter Modifier and Type Method Description void
UtcDateTypeAdapter. write(JsonWriter out, java.util.Date date)
-