EclipseLink 2.2.0, build 'v20110202-r8913' API Reference

org.eclipse.persistence.jaxb.attachment
Class AttachmentUnmarshallerAdapter

java.lang.Object
  extended by org.eclipse.persistence.jaxb.attachment.AttachmentUnmarshallerAdapter
All Implemented Interfaces:
XMLAttachmentUnmarshaller

public class AttachmentUnmarshallerAdapter
extends java.lang.Object
implements XMLAttachmentUnmarshaller

INTERNAL:

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

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

Constructor Summary
AttachmentUnmarshallerAdapter(AttachmentUnmarshaller at)
           
 
Method Summary
 byte[] getAttachmentAsByteArray(java.lang.String id)
           
 javax.activation.DataHandler getAttachmentAsDataHandler(java.lang.String id)
           
 AttachmentUnmarshaller getAttachmentUnmarshaller()
           
 boolean isXOPPackage()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentUnmarshallerAdapter

public AttachmentUnmarshallerAdapter(AttachmentUnmarshaller at)
Method Detail

getAttachmentAsByteArray

public byte[] getAttachmentAsByteArray(java.lang.String id)
Specified by:
getAttachmentAsByteArray in interface XMLAttachmentUnmarshaller

getAttachmentAsDataHandler

public javax.activation.DataHandler getAttachmentAsDataHandler(java.lang.String id)
Specified by:
getAttachmentAsDataHandler in interface XMLAttachmentUnmarshaller

getAttachmentUnmarshaller

public AttachmentUnmarshaller getAttachmentUnmarshaller()

isXOPPackage

public boolean isXOPPackage()
Specified by:
isXOPPackage in interface XMLAttachmentUnmarshaller

EclipseLink 2.2.0, build 'v20110202-r8913' API Reference