Class AttachmentUnmarshallerAdapter
java.lang.Object
org.eclipse.persistence.jaxb.attachment.AttachmentUnmarshallerAdapter
- All Implemented Interfaces:
XMLAttachmentUnmarshaller
INTERNAL:
Purpose:Provide an implementation of the TopLink OX XMLAttachmentUnmarshaller interface that wraps an implementation of the JAXB AttachmentUnmarshaller interface.
Responsibilities:
- Implement the XMLAttachmentUnmarshaller interface
- Adapt events from the TopLink OX Attachment API to the JAXB 2.0 Attachment API
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
- See Also:
-
AttachmentUnmarshallerXMLAttachmentUnmarshaller
- Author:
- mmacivor
-
Constructor Summary
ConstructorsConstructorDescriptionAttachmentUnmarshallerAdapter(jakarta.xml.bind.attachment.AttachmentUnmarshaller at) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]jakarta.activation.DataHandlerjakarta.xml.bind.attachment.AttachmentUnmarshallerboolean
-
Constructor Details
-
AttachmentUnmarshallerAdapter
public AttachmentUnmarshallerAdapter(jakarta.xml.bind.attachment.AttachmentUnmarshaller at)
-
-
Method Details
-
getAttachmentAsByteArray
- Specified by:
getAttachmentAsByteArrayin interfaceXMLAttachmentUnmarshaller
-
getAttachmentAsDataHandler
- Specified by:
getAttachmentAsDataHandlerin interfaceXMLAttachmentUnmarshaller
-
getAttachmentUnmarshaller
public jakarta.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller() -
isXOPPackage
public boolean isXOPPackage()- Specified by:
isXOPPackagein interfaceXMLAttachmentUnmarshaller
-