public class AttachmentMarshallerAdapter extends java.lang.Object implements XMLAttachmentMarshaller
Purpose:Provide an implementation of the TopLink OX XMLAttachmentMarshaller interface that wraps an implementation of the JAXB AttachmentMarshaller interface.
Responsibilities:
This class allows TopLink OXM to do attachment marshalling callback events to a JAXB 2.0 Listener without adding a dependancy on JAXB 2.0 into core TopLink. The Adapter class wraps a javax.xml.bin.attachment.AttachmentMarshaller and passes on the events as they're raised
AttachmentMarshaller
,
XMLAttachmentMarshaller
Constructor and Description |
---|
AttachmentMarshallerAdapter(AttachmentMarshaller a) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addMtomAttachment(byte[] data,
int offset,
int length,
java.lang.String mimeType,
java.lang.String elementName,
java.lang.String namespace) |
java.lang.String |
addMtomAttachment(javax.activation.DataHandler data,
java.lang.String elementName,
java.lang.String namespaceURI) |
java.lang.String |
addSwaRefAttachment(byte[] data,
int offset,
int length) |
java.lang.String |
addSwaRefAttachment(javax.activation.DataHandler data) |
AttachmentMarshaller |
getAttachmentMarshaller() |
boolean |
isXOPPackage() |
public AttachmentMarshallerAdapter(AttachmentMarshaller a)
public boolean isXOPPackage()
isXOPPackage
in interface XMLAttachmentMarshaller
public java.lang.String addMtomAttachment(javax.activation.DataHandler data, java.lang.String elementName, java.lang.String namespaceURI)
addMtomAttachment
in interface XMLAttachmentMarshaller
public java.lang.String addMtomAttachment(byte[] data, int offset, int length, java.lang.String mimeType, java.lang.String elementName, java.lang.String namespace)
addMtomAttachment
in interface XMLAttachmentMarshaller
public java.lang.String addSwaRefAttachment(javax.activation.DataHandler data)
addSwaRefAttachment
in interface XMLAttachmentMarshaller
public java.lang.String addSwaRefAttachment(byte[] data, int offset, int length)
addSwaRefAttachment
in interface XMLAttachmentMarshaller
public AttachmentMarshaller getAttachmentMarshaller()