use of org.jibx.runtime.impl.StAXReaderWrapper in project spring-framework by spring-projects.
the class JibxMarshaller method unmarshalXmlStreamReader.
@Override
protected Object unmarshalXmlStreamReader(XMLStreamReader streamReader) {
try {
UnmarshallingContext unmarshallingContext = (UnmarshallingContext) createUnmarshallingContext();
IXMLReader xmlReader = new StAXReaderWrapper(streamReader, null, true);
unmarshallingContext.setDocument(xmlReader);
return unmarshallingContext.unmarshalElement();
} catch (JiBXException ex) {
throw convertJibxException(ex, false);
}
}
Aggregations