serialize

abstract fun serialize(writer: Writer, value: T)

Serializes a single value, writing its textual representation to writer.


open override fun serialize(value: T): String

Serializes a single value into its textual representation in mimeType.

Throws

if value cannot be represented in mimeType.