public abstract class AttachmentMarshaller extends Object
Enable JAXB marshalling to optimize storage of binary data.
This API enables an efficient cooperative creation of optimized binary data formats between a JAXB marshalling process and a MIME-based package processor. A JAXB implementation marshals the root body of a MIME-based package, delegating the creation of referenceable MIME parts to the MIME-based package processor that implements this abstraction.
XOP processing is enabled when isXOPPackage()
is true.
See addMtomAttachment(DataHandler, String, String)
for details.
WS-I Attachment Profile 1.0 is supported by
addSwaRefAttachment(DataHandler)
being called by the
marshaller for each JAXB property related to
{http://ws-i.org/profiles/basic/1.1/xsd}swaRef.
Constructor and Description |
---|
AttachmentMarshaller() |
Modifier and Type | Method and Description |
---|---|
abstract String |
addMtomAttachment(byte[] data,
int offset,
int length,
String mimeType,
String elementNamespace,
|