Class AttachmentMarshaller

java.lang.Object
jakarta.xml.bind.attachment.AttachmentMarshaller

public abstract class AttachmentMarshaller extends Object

Enable Jakarta XML Binding marshalling to optimize storage of binary data.

This API enables an efficient cooperative creation of optimized binary data formats between a Jakarta XML Binding marshalling process and a MIME-based package processor. A Jakarta XML Binding 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 Jakarta XML Binding property related to {http://ws-i.org/profiles/basic/1.1/xsd}swaRef.

Since:
1.6, JAXB 2.0
See Also: