spring-framework / org.springframework.oxm.support / AbstractMarshaller / unmarshal

unmarshal

fun unmarshal(source: Source): Any

Unmarshals the given provided javax.xml.transform.Source into an object graph.

This implementation inspects the given result, and calls unmarshalDomSource, unmarshalSaxSource, or unmarshalStreamSource.

Parameters

source - the source to marshal from

Exceptions

IOException - if an I/O Exception occurs

XmlMappingException - if the given source cannot be mapped to an object

IllegalArgumentException - if source is neither a DOMSource, a SAXSource, nor a StreamSource

Return
the object graph

See Also
#unmarshalDomSource(javax.xml.transform.dom.DOMSource)#unmarshalSaxSource(javax.xml.transform.sax.SAXSource)#unmarshalStreamSource(javax.xml.transform.stream.StreamSource)