Top Description Methods
org.eclipse.persistence.oxm.attachment

public Interface XMLAttachmentMarshaller

Imports
jakarta.activation.DataHandler

Purpose: Provides an interface through which EclipseLink can allow a user to do special handling for Binary Data. This is used for fields mapped using an XMLBinaryDataMapping to retrieve an id to be marshaled in place of the binary object. This id will be passed into an XMLAttachmentUnmarshaller when the document is unmarshalled to retrieve the original data. If isXOPPackage returns false, then no other methods on this interface will be called, and it will be assumed that all binary mapped fields should be inlined as base64.

See Also
org.eclipse.persistence.oxm.mappings.XMLBinaryDataMapping, XMLAttachmentUnmarshaller

Method Summary

Modifier and TypeMethod and Description
public String
addMtomAttachment(DataHandler data, String elementName, String namespace)

public String
addMtomAttachment(byte[] data, int start, int length, String mimeType, String elementName, String namespace)

public String
public String
addSwaRefAttachment(byte[] data, int start, int length)

public boolean

Method Detail

addMtomAttachmentback to summary
public String addMtomAttachment(DataHandler data, String elementName, String namespace)
addMtomAttachmentback to summary
public String addMtomAttachment(byte[] data, int start, int length, String mimeType, String elementName, String namespace)
addSwaRefAttachmentback to summary
public String addSwaRefAttachment(DataHandler data)
addSwaRefAttachmentback to summary
public String addSwaRefAttachment(byte[] data, int start, int length)
isXOPPackageback to summary
public boolean isXOPPackage()