@Override
 protected Object unmarshalXmlEventReader(XMLEventReader eventReader) {
   try {
     XMLStreamReader streamReader = StaxUtils.createEventStreamReader(eventReader);
     return unmarshalXmlStreamReader(streamReader);
   } catch (XMLStreamException ex) {
     return new UnmarshallingFailureException("JiBX unmarshalling exception", ex);
   }
 }
Esempio n. 2
0
 @Override
 protected Object unmarshalXmlEventReader(XMLEventReader eventReader) throws XmlMappingException {
   try {
     XMLStreamReader streamReader = StaxUtils.createEventStreamReader(eventReader);
     return unmarshalXmlStreamReader(streamReader);
   } catch (XMLStreamException ex) {
     throw convertXStreamException(ex, false);
   }
 }