Uses of Interface
com.cedarsoftware.io.WriteOptions
Packages that use WriteOptions
-
Uses of WriteOptions in com.cedarsoftware.io
Methods in com.cedarsoftware.io that return WriteOptionsModifier and TypeMethodDescriptionWriteOptionsBuilder.build()
Seal the instance of this class so that no more changes can be made to it.static WriteOptions
WriteOptionsBuilder.getDefaultWriteOptions()
JsonWriter.getWriteOptions()
WriterContext.getWriteOptions()
Gets the write options for the current serializationMethods in com.cedarsoftware.io with parameters of type WriteOptionsModifier and TypeMethodDescriptionstatic <T> T
JsonIo.deepCopy
(T source, ReadOptions readOptions, WriteOptions writeOptions) Creates a deep copy of an object by serializing it to JSON and then deserializing it back.static void
JsonIo.toJson
(OutputStream out, Object source, WriteOptions writeOptions) Writes a Java object as JSON directly to an OutputStream.static String
JsonIo.toJson
(Object srcObject, WriteOptions writeOptions) Converts a Java object to a JSON string representation.Constructors in com.cedarsoftware.io with parameters of type WriteOptionsModifierConstructorDescriptionJsonWriter
(OutputStream out, WriteOptions writeOptions) Copy another WriteOptions as a starting point. -
Uses of WriteOptions in com.cedarsoftware.io.prettyprint
Methods in com.cedarsoftware.io.prettyprint with parameters of type WriteOptionsModifier and TypeMethodDescriptionstatic String
JsonPrettyPrinter.prettyPrint
(String json, WriteOptions writeOptions) Takes a compact JSON string and returns a pretty-printed version with proper indentation using the specified formatting options.