deserialize

abstract fun deserialize(reader: Reader): T

Deserializes a single value of type T by reading its textual representation from reader.


open override fun deserialize(string: String): T

Deserializes a single value of type T from its textual representation string.

Throws

if string parses correctly as mimeType but does not encode a valid T.

(a format-specific parsing exception, e.g. from the underlying Jackson ObjectMapper on the JVM) if string is not well-formed mimeType in the first place.