Package org.apache.axiom.util.stax.xop
Class XOPEncodedStream
- java.lang.Object
-
- org.apache.axiom.util.stax.xop.XOPEncodedStream
-
public class XOPEncodedStream extends Object
Represents an XOP encoded stream. Since an XOP message is a MIME package with an main part in XML and a set of additional (binary) parts referenced from the main part, this class encapsulates anXMLStreamReaderrepresenting the main part and aMimePartProvidergiving access to the attachments. Instances of this class can be obtained fromXOPUtils.getXOPEncodedStream(XMLStreamReader).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MimePartProvidergetMimePartProvider()Get the provider object for the additional MIME parts referenced by the main part.XMLStreamReadergetReader()Get the stream reader for the main part of the XOP message.
-
-
-
Method Detail
-
getReader
public XMLStreamReader getReader()
Get the stream reader for the main part of the XOP message.- Returns:
- the stream reader for the main part
-
getMimePartProvider
public MimePartProvider getMimePartProvider()
Get the provider object for the additional MIME parts referenced by the main part.- Returns:
- the MIME part provider
-
-