Package org.apache.axiom.util.jaxb
Class JAXBUtils
- java.lang.Object
-
- org.apache.axiom.util.jaxb.JAXBUtils
-
public final class JAXBUtils extends Object
Deprecated.Contains low level utility methods that integrate JAXB with some of the Axiom specific StAX extensions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static UnmarshallerAdapter
getUnmarshallerAdapter(XMLStreamReader reader)
Deprecated.Create an adapter that enables anUnmarshaller
to perform XOP/MTOM processing on anXMLStreamReader
that exposes theDataHandlerReader
extension.
-
-
-
Method Detail
-
getUnmarshallerAdapter
public static UnmarshallerAdapter getUnmarshallerAdapter(XMLStreamReader reader)
Deprecated.Create an adapter that enables anUnmarshaller
to perform XOP/MTOM processing on anXMLStreamReader
that exposes theDataHandlerReader
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 theAttachmentUnmarshaller
returned byUnmarshallerAdapter.getAttachmentUnmarshaller()
. - Call
Unmarshaller.unmarshal(XMLStreamReader)
orUnmarshaller.unmarshal(XMLStreamReader, Class)
, passing theXMLStreamReader
returned byUnmarshallerAdapter.getReader()
as parameter.
- Parameters:
reader
- anXMLStreamReader
that may expose theDataHandlerReader
extension- Returns:
- the adapter
- Create the
-
-