decodeFromString

open override fun <T> decodeFromString(deserializer: DeserializationStrategy<T>, string: String): T(source)

Decode the given string value using the deserializer. It is equivalent to decodeFromReader(deserializer, XmlStreaming.newReader(string)).

Parameters

deserializer

The deserializer to use.

string

The string input


fun <T> decodeFromString(deserializer: DeserializationStrategy<T>, string: String, rootName: QName?): T(source)

Decode the given string value using the deserializer. It is equivalent to decodeFromReader(deserializer, XmlStreaming.newReader(string)).

Parameters

deserializer

The deserializer to use.

rootName

The QName to use for the root tag

string

The string input