SerializationFormat

interface SerializationFormat

Functions

Link copied to clipboard
abstract fun parse(input: InputStream): Any
open fun parse(input: String): Any
Link copied to clipboard
open fun serialize(instance: Any): String
abstract fun serialize(instance: Any, output: OutputStream)
Link copied to clipboard
open fun serializeBytes(instance: Any): ByteArray

Properties

Link copied to clipboard
abstract val mediaType: MediaType
Link copied to clipboard
abstract val textFormat: Boolean