public final class JAXBUtils extends Object
Modifier and Type | Method and Description |
---|---|
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. |
public static UnmarshallerAdapter getUnmarshallerAdapter(XMLStreamReader reader)
Unmarshaller
to perform XOP/MTOM processing on an
XMLStreamReader
that exposes the DataHandlerReader
extension. This method
should be used in the following way:
Unmarshaller
.
XMLStreamReader
to be unmarshalled.
Unmarshaller
with the AttachmentUnmarshaller
returned by
UnmarshallerAdapter.getAttachmentUnmarshaller()
.
Unmarshaller.unmarshal(XMLStreamReader)
or
Unmarshaller.unmarshal(XMLStreamReader, Class)
, passing the XMLStreamReader
returned by UnmarshallerAdapter.getReader()
as parameter.
reader
- an XMLStreamReader
that may expose the DataHandlerReader
extensionCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.