Uses of Class
com.google.gson.stream.JsonWriter
Packages that use JsonWriter
Package
Description
This package provides the
Gson
class to convert Json to Java and
vice-versa.Do NOT use any class in this package as they are meant for internal use in Gson.
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 JsonWriterModifier and TypeMethodDescriptionGson.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 JsonWriterModifier and TypeMethodDescriptionvoid
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
.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 JsonWriterModifier and TypeMethodDescription(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 JsonWriterModifier and TypeMethodDescriptionvoid
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 JsonWriterModifier and TypeMethodDescriptionstatic 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.bindMethods in com.google.gson.internal.bind that return JsonWriterModifier and TypeMethodDescriptionJsonTreeWriter.beginArray()
JsonTreeWriter.beginObject()
JsonTreeWriter.endArray()
JsonTreeWriter.endObject()
JsonTreeWriter.nullValue()
JsonTreeWriter.value
(boolean value) JsonTreeWriter.value
(double value) JsonTreeWriter.value
(float value) JsonTreeWriter.value
(long value) Methods in com.google.gson.internal.bind with parameters of type JsonWriterModifier and TypeMethodDescriptionvoid
ArrayTypeAdapter.write
(JsonWriter out, Object array) void
CollectionTypeAdapterFactory.Adapter.write
(JsonWriter out, Collection<E> collection) void
DateTypeAdapter.write
(JsonWriter out, Date value) void
DefaultDateTypeAdapter.write
(JsonWriter out, Date value) void
MapTypeAdapterFactory.Adapter.write
(JsonWriter out, Map<K, V> map) void
NumberTypeAdapter.write
(JsonWriter out, Number value) void
ObjectTypeAdapter.write
(JsonWriter out, Object value) void
ReflectiveTypeAdapterFactory.Adapter.write
(JsonWriter out, T value) (package private) abstract void
ReflectiveTypeAdapterFactory.BoundField.write
(JsonWriter writer, 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 JsonWriterModifier and TypeMethodDescriptionvoid
SqlDateTypeAdapter.write
(JsonWriter out, Date value) void
SqlTimestampTypeAdapter.write
(JsonWriter out, Timestamp value) void
SqlTimeTypeAdapter.write
(JsonWriter out, Time value) -
Uses of JsonWriter in com.google.gson.stream
Methods in com.google.gson.stream that return JsonWriterModifier and TypeMethodDescriptionJsonWriter.beginArray()
Begins encoding a new array.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.endArray()
Ends encoding the current array.JsonWriter.endObject()
Ends encoding the current object.Writesvalue
directly to the writer without quoting or escaping.Encodes the property name.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.value
(boolean value) Encodesvalue
.JsonWriter.value
(double value) Encodesvalue
.JsonWriter.value
(float value) Encodesvalue
.JsonWriter.value
(long value) Encodesvalue
.Encodesvalue
.Encodesvalue
.Encodesvalue
. -
Uses of JsonWriter in com.google.gson.typeadapters
Methods in com.google.gson.typeadapters with parameters of type JsonWriter