Class AttachmentUnmarshallerAdapter

  • All Implemented Interfaces:
    org.eclipse.persistence.oxm.attachment.XMLAttachmentUnmarshaller

    public class AttachmentUnmarshallerAdapter
    extends java.lang.Object
    implements org.eclipse.persistence.oxm.attachment.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

    Since:
    Oracle TopLink 11.1.1.0.0
    Author:
    mmacivor
    See Also:
    AttachmentUnmarshaller, XMLAttachmentUnmarshaller
    • Constructor Detail

      • AttachmentUnmarshallerAdapter

        public AttachmentUnmarshallerAdapter​(javax.xml.bind.attachment.AttachmentUnmarshaller at)
    • Method Detail

      • getAttachmentAsByteArray

        public byte[] getAttachmentAsByteArray​(java.lang.String id)
        Specified by:
        getAttachmentAsByteArray in interface org.eclipse.persistence.oxm.attachment.XMLAttachmentUnmarshaller
      • getAttachmentAsDataHandler

        public javax.activation.DataHandler getAttachmentAsDataHandler​(java.lang.String id)
        Specified by:
        getAttachmentAsDataHandler in interface org.eclipse.persistence.oxm.attachment.XMLAttachmentUnmarshaller
      • getAttachmentUnmarshaller

        public javax.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
      • isXOPPackage

        public boolean isXOPPackage()
        Specified by:
        isXOPPackage in interface org.eclipse.persistence.oxm.attachment.XMLAttachmentUnmarshaller