public class AttachmentUnmarshallerAdapter extends 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(String id) |
DataHandler |
getAttachmentAsDataHandler(String id) |
AttachmentUnmarshaller |
getAttachmentUnmarshaller() |
boolean |
isXOPPackage() |
public AttachmentUnmarshallerAdapter(AttachmentUnmarshaller at)
public byte[] getAttachmentAsByteArray(String id)
getAttachmentAsByteArray
in interface XMLAttachmentUnmarshaller
public DataHandler getAttachmentAsDataHandler(String id)
getAttachmentAsDataHandler
in interface XMLAttachmentUnmarshaller
public AttachmentUnmarshaller getAttachmentUnmarshaller()
public boolean isXOPPackage()
isXOPPackage
in interface XMLAttachmentUnmarshaller
EclipseLink 2.5.2, "build v20140319-9ad6abd" API Reference