org.apache.axiom.util.jaxb

## Class UnmarshallerAdapter

- java.lang.Object
- - org.apache.axiom.util.jaxb.UnmarshallerAdapter

-     public class UnmarshallerAdapter
      extends Object

  Adapter that enables an `Unmarshaller` to perform XOP/MTOM processing on an `XMLStreamReader` that exposes the `DataHandlerReader` extension.
  See Also:
    `JAXBUtils.getUnmarshallerAdapter(XMLStreamReader)`

- - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `javax.xml.bind.attachment.AttachmentUnmarshaller` | `getAttachmentUnmarshaller()` Get the `AttachmentUnmarshaller` to be configured on the `Unmarshaller`.
    `javax.xml.stream.XMLStreamReader` | `getReader()` Get the `XMLStreamReader` to be passed to the `Unmarshaller`.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getReader

          public javax.xml.stream.XMLStreamReader getReader()

      Get the `XMLStreamReader` to be passed to the `Unmarshaller`.
      Returns:
        the reader

    - #### getAttachmentUnmarshaller

          public javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()

      Get the `AttachmentUnmarshaller` to be configured on the `Unmarshaller`.
      Returns:
        the `AttachmentUnmarshaller` instance; this may be `null` if the underlying `XMLStreamReader` doesn't expose the `DataHandlerReader` extension

Copyright © The Apache Software Foundation. All Rights Reserved.