org.apache.axiom.util.jaxb
Class JAXBUtils
java.lang.Object
org.apache.axiom.util.jaxb.JAXBUtils
public final class JAXBUtils
- extends Object
Contains low level utility methods that integrate JAXB with some of the Axiom specific StAX
extensions.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getUnmarshallerAdapter
public static UnmarshallerAdapter getUnmarshallerAdapter(XMLStreamReader reader)
- Create an adapter that enables an
Unmarshaller to perform XOP/MTOM processing on an
XMLStreamReader that exposes the DataHandlerReader extension. This method
should be used in the following way:
- Create the
Unmarshaller.
- Call this method with the
XMLStreamReader to be unmarshalled.
- Configure the
Unmarshaller with the AttachmentUnmarshaller returned by
UnmarshallerAdapter.getAttachmentUnmarshaller().
- Call
Unmarshaller.unmarshal(XMLStreamReader) or
Unmarshaller.unmarshal(XMLStreamReader, Class), passing the XMLStreamReader
returned by UnmarshallerAdapter.getReader() as parameter.
- Parameters:
reader - an XMLStreamReader that may expose the DataHandlerReader extension
- Returns:
- the adapter
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.