public class AttachmentUnmarshallerAdapter extends java.lang.Object implements XMLAttachmentUnmarshaller
Purpose:Provide an implementation of the TopLink OX XMLAttachmentUnmarshaller interface that wraps an implementation of the JAXB AttachmentUnmarshaller interface.
Responsibilities:
This class allows TopLink OXM to do attachment unmarshalling 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.AttachmentUnmarshaller and passes on the events as they're raised
AttachmentUnmarshaller,
XMLAttachmentUnmarshaller| Constructor and Description |
|---|
AttachmentUnmarshallerAdapter(AttachmentUnmarshaller at) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getAttachmentAsByteArray(java.lang.String id) |
javax.activation.DataHandler |
getAttachmentAsDataHandler(java.lang.String id) |
AttachmentUnmarshaller |
getAttachmentUnmarshaller() |
boolean |
isXOPPackage() |
public AttachmentUnmarshallerAdapter(AttachmentUnmarshaller at)
public byte[] getAttachmentAsByteArray(java.lang.String id)
getAttachmentAsByteArray in interface XMLAttachmentUnmarshallerpublic javax.activation.DataHandler getAttachmentAsDataHandler(java.lang.String id)
getAttachmentAsDataHandler in interface XMLAttachmentUnmarshallerpublic AttachmentUnmarshaller getAttachmentUnmarshaller()
public boolean isXOPPackage()
isXOPPackage in interface XMLAttachmentUnmarshaller