Uses of Class
com.google.gson.stream.JsonWriter
-
Packages that use JsonWriter Package Description com.google.gson This package provides theGsonclass to convert Json to Java and vice-versa.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.stream -
-
Uses of JsonWriter in com.google.gson
Methods in com.google.gson that return JsonWriter Modifier and Type Method Description JsonWriterGson. 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 voidGson. toJson(JsonElement jsonElement, JsonWriter writer)Writes the JSON forjsonElementtowriter.voidGson. toJson(java.lang.Object src, java.lang.reflect.Type typeOfSrc, JsonWriter writer)Writes the JSON representation ofsrcof typetypeOfSrctowriter.abstract voidTypeAdapter. 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.internal
Methods in com.google.gson.internal with parameters of type JsonWriter Modifier and Type Method Description static voidStreams. 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 classJsonTreeWriterThis writer creates a JsonElement.Methods in com.google.gson.internal.bind that return JsonWriter Modifier and Type Method Description JsonWriterJsonTreeWriter. beginArray()JsonWriterJsonTreeWriter. beginObject()JsonWriterJsonTreeWriter. endArray()JsonWriterJsonTreeWriter. endObject()JsonWriterJsonTreeWriter. name(java.lang.String name)JsonWriterJsonTreeWriter. nullValue()JsonWriterJsonTreeWriter. value(boolean value)JsonWriterJsonTreeWriter. value(double value)JsonWriterJsonTreeWriter. value(long value)JsonWriterJsonTreeWriter. value(java.lang.Boolean value)JsonWriterJsonTreeWriter. value(java.lang.Number value)JsonWriterJsonTreeWriter. value(java.lang.String value)Methods in com.google.gson.internal.bind with parameters of type JsonWriter Modifier and Type Method Description voidArrayTypeAdapter. write(JsonWriter out, java.lang.Object array)voidDateTypeAdapter. write(JsonWriter out, java.util.Date value)voidDefaultDateTypeAdapter. write(JsonWriter out, java.util.Date value)voidNumberTypeAdapter. write(JsonWriter out, java.lang.Number value)voidObjectTypeAdapter. write(JsonWriter out, java.lang.Object value)voidReflectiveTypeAdapterFactory.Adapter. write(JsonWriter out, T value)voidTreeTypeAdapter. write(JsonWriter out, T value) -
Uses of JsonWriter in com.google.gson.stream
Methods in com.google.gson.stream that return JsonWriter Modifier and Type Method Description JsonWriterJsonWriter. beginArray()Begins encoding a new array.JsonWriterJsonWriter. beginObject()Begins encoding a new object.JsonWriterJsonWriter. endArray()Ends encoding the current array.JsonWriterJsonWriter. endObject()Ends encoding the current object.JsonWriterJsonWriter. jsonValue(java.lang.String value)Writesvaluedirectly to the writer without quoting or escaping.JsonWriterJsonWriter. name(java.lang.String name)Encodes the property name.JsonWriterJsonWriter. nullValue()Encodesnull.JsonWriterJsonWriter. value(boolean value)Encodesvalue.JsonWriterJsonWriter. value(double value)Encodesvalue.JsonWriterJsonWriter. value(long value)Encodesvalue.JsonWriterJsonWriter. value(java.lang.Boolean value)Encodesvalue.JsonWriterJsonWriter. value(java.lang.Number value)Encodesvalue.JsonWriterJsonWriter. value(java.lang.String value)Encodesvalue.
-