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(jakarta.xml.bind.attachment.AttachmentUnmarshaller at) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getAttachmentAsByteArray(String id) |
jakarta.activation.DataHandler |
getAttachmentAsDataHandler(String id) |
jakarta.xml.bind.attachment.AttachmentUnmarshaller |
getAttachmentUnmarshaller() |
boolean |
isXOPPackage() |
public AttachmentUnmarshallerAdapter(jakarta.xml.bind.attachment.AttachmentUnmarshaller at)
public byte[] getAttachmentAsByteArray(String id)
getAttachmentAsByteArray
in interface XMLAttachmentUnmarshaller
public jakarta.activation.DataHandler getAttachmentAsDataHandler(String id)
getAttachmentAsDataHandler
in interface XMLAttachmentUnmarshaller
public jakarta.xml.bind.attachment.AttachmentUnmarshaller getAttachmentUnmarshaller()
public boolean isXOPPackage()
isXOPPackage
in interface XMLAttachmentUnmarshaller
Copyright © 2007–2021 Eclipse.org - EclipseLink Project. All rights reserved.