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.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 TypeMethodDescriptionvoidGson.toJson(JsonElement jsonElement, JsonWriter writer) Writes the JSON forjsonElementtowriter.voidGson.toJson(Object src, 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.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.JsonWriter.endArray()Ends encoding the current array.JsonWriter.endObject()Ends encoding the current object.Writesvaluedirectly to the writer without quoting or escaping.Encodes the property name.JsonWriter.nullValue()Encodesnull.JsonWriter.value(boolean value) Encodesvalue.JsonWriter.value(double value) Encodesvalue.JsonWriter.value(float value) Encodesvalue.JsonWriter.value(long value) Encodesvalue.Encodesvalue.Encodesvalue.Encodesvalue.