Search in sources :

Example 1 with IXMLReader

use of org.jibx.runtime.IXMLReader 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);
    }
}
Also used : IXMLReader(org.jibx.runtime.IXMLReader) StAXReaderWrapper(org.jibx.runtime.impl.StAXReaderWrapper) JiBXException(org.jibx.runtime.JiBXException) UnmarshallingContext(org.jibx.runtime.impl.UnmarshallingContext) IUnmarshallingContext(org.jibx.runtime.IUnmarshallingContext)

Aggregations

IUnmarshallingContext (org.jibx.runtime.IUnmarshallingContext)1 IXMLReader (org.jibx.runtime.IXMLReader)1 JiBXException (org.jibx.runtime.JiBXException)1 StAXReaderWrapper (org.jibx.runtime.impl.StAXReaderWrapper)1 UnmarshallingContext (org.jibx.runtime.impl.UnmarshallingContext)1