Package org.apache.axiom.om

## Class XOPEncoded<T>

- java.lang.Object
- - org.apache.axiom.om.XOPEncoded<T>

-     public final class XOPEncoded<T>
      extends Object

  Represent XOP encoded data. Since an XOP message is a MIME package with a root part in XML and a set of additional (binary) parts referenced from the main part, this class encapsulates an API dependent object representing the main part and an `OMAttachmentAccessor` giving access to the attachments. Instances of this class can be obtained from `OMContainer.getXOPEncodedStreamReader(boolean)`.

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `XOPEncoded​(T rootPart, OMAttachmentAccessor attachmentAccessor)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `OMAttachmentAccessor` | `getAttachmentAccessor()` | Get the accessor for the additional MIME parts referenced by the root part.
    `T` | `getRootPart()` | Get the root part of the XOP message.

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

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

- - ### Constructor Detail

    - #### XOPEncoded

          public XOPEncoded​(T rootPart,
                            OMAttachmentAccessor attachmentAccessor)

  - ### Method Detail

    - #### getRootPart

          public T getRootPart()

      Get the root part of the XOP message.
      Returns:
        the root part

    - #### getAttachmentAccessor

          public OMAttachmentAccessor getAttachmentAccessor()

      Get the accessor for the additional MIME parts referenced by the root part.
      Returns:
        the attachment accessor