public interface Unmarshaller
Marshaller| Modifier and Type | Method and Description |
|---|---|
boolean |
supports(java.lang.Class<?> clazz)
Indicates whether this unmarshaller can unmarshal instances of the supplied type.
|
java.lang.Object |
unmarshal(javax.xml.transform.Source source)
Unmarshals the given
Source into an object graph. |
boolean supports(java.lang.Class<?> clazz)
clazz - the class that this unmarshaller is being asked if it can marshaltrue if this unmarshaller can indeed unmarshal to the supplied class;
false otherwisejava.lang.Object unmarshal(javax.xml.transform.Source source)
throws java.io.IOException,
XmlMappingException
Source into an object graph.source - the source to marshal fromjava.io.IOException - if an I/O error occursXmlMappingException - if the given source cannot be mapped to an object