public interface Unmarshaller
Marshaller
boolean supports(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
otherwiseObject unmarshal(Source source) throws IOException, XmlMappingException
Source
into an object graph.source
- the source to marshal fromIOException
- if an I/O error occursXmlMappingException
- if the given source cannot be mapped to an object