decodeFromReader

inline fun <T : Any> decodeFromReader(reader: XmlReader, rootName: QName? = null): T(source)

Parse an object of the type T out of the reader. This function is intended mostly to be used indirectly where though the reified function.

Parameters

reader

An XmlReader that contains the XML from which to read the object

rootName

The QName to use for the root tag

T

The type to use to read the object


fun <T> decodeFromReader(deserializer: DeserializationStrategy<T>, reader: XmlReader, rootName: QName? = null): T(source)

Parse an object of the type T out of the reader. This function is intended mostly to be used indirectly where though the reified function.

Parameters

reader

An XmlReader that contains the XML from which to read the object

rootName

The QName to use for the root tag

deserializer

The loader to use to read the object