Uses of Class
de.haumacher.msgbuf.json.JsonWriter
Packages that use JsonWriter
Package
Description
Copy of the package `com.google.gson.stream` from gson-2.8.2 library for JSON stream writing.
-
Uses of JsonWriter in de.haumacher.msgbuf.data
Methods in de.haumacher.msgbuf.data with parameters of type JsonWriterModifier and TypeMethodDescriptionfinal voidAbstractDataObject.writeContent(JsonWriter out) voidDataObject.writeContent(JsonWriter out) Writes a JSON object containing keys for all fields of this object.protected voidAbstractDataObject.writeFields(JsonWriter out) Writes all fields of this instance to the given output.voidDataObject.writeTo(JsonWriter out) Writes this instance to the given output. -
Uses of JsonWriter in de.haumacher.msgbuf.graph
Methods in de.haumacher.msgbuf.graph with parameters of type JsonWriterModifier and TypeMethodDescriptionvoidDefaultScope.createPatch(JsonWriter json) Exports recorded changes to the givenJsonWriter.final voidAbstractSharedGraphNode.writeData(Scope scope, JsonWriter out, int id) voidSharedGraphNode.writeData(Scope scope, JsonWriter out, int id) Writes the complete data of this node including type and ID to the given writer.voidAbstractSharedGraphNode.writeElement(Scope scope, JsonWriter out, String field, Object element) voidSharedGraphNode.writeElement(Scope scope, JsonWriter out, String field, Object element) Writes the given element value that is compatible with the repeated field with the given name to the given output.protected voidAbstractSharedGraphNode.writeFields(Scope scope, JsonWriter out) Writes all fields of this instance to the given output.voidAbstractSharedGraphNode.writeFieldValue(Scope scope, JsonWriter out, String field) voidSharedGraphNode.writeFieldValue(Scope scope, JsonWriter out, String field) Writes a single value that is currently assigned to the field with the given name to the given writer.voidScope.writeRefOrData(JsonWriter out, SharedGraphNode node) Writes the given graph node to the given writer.default voidScopeMixin.writeRefOrData(JsonWriter out, SharedGraphNode node) final voidAbstractSharedGraphNode.writeTo(Scope scope, JsonWriter out) voidSharedGraphNode.writeTo(Scope scope, JsonWriter out) Writes this node to the given writer. -
Uses of JsonWriter in de.haumacher.msgbuf.graph.cmd
Methods in de.haumacher.msgbuf.graph.cmd with parameters of type JsonWriterModifier and TypeMethodDescriptionprotected voidCommand.writeFields(JsonWriter out) protected voidInsertElement.writeFields(JsonWriter out) protected voidListUpdate.writeFields(JsonWriter out) final voidCommand.writeTo(JsonWriter out) -
Uses of JsonWriter in de.haumacher.msgbuf.json
Methods in de.haumacher.msgbuf.json 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(long value) Encodesvalue.Encodesvalue.Encodesvalue.Encodesvalue.Methods in de.haumacher.msgbuf.json with parameters of type JsonWriterModifier and TypeMethodDescriptionstatic voidJsonUtil.writeBinaryOptional(JsonWriter out, byte[] value) Writes the given byte array as Base64 encoded string.