com.sun.xml.ws.message
Class AttachmentUnmarshallerImpl

java.lang.Object
  extended by javax.xml.bind.attachment.AttachmentUnmarshaller
      extended by com.sun.xml.ws.message.AttachmentUnmarshallerImpl

public final class AttachmentUnmarshallerImpl
extends AttachmentUnmarshaller

Implementation of AttachmentUnmarshaller that uses loads attachments from AttachmentSet directly.

See Also:
MimeMultipartParser

Constructor Summary
AttachmentUnmarshallerImpl(AttachmentSet attachments)
           
 
Method Summary
 byte[] getAttachmentAsByteArray(String cid)
           
 javax.activation.DataHandler getAttachmentAsDataHandler(String cid)
           
 
Methods inherited from class javax.xml.bind.attachment.AttachmentUnmarshaller
isXOPPackage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttachmentUnmarshallerImpl

public AttachmentUnmarshallerImpl(AttachmentSet attachments)
Method Detail

getAttachmentAsDataHandler

public javax.activation.DataHandler getAttachmentAsDataHandler(String cid)
Specified by:
getAttachmentAsDataHandler in class AttachmentUnmarshaller

getAttachmentAsByteArray

public byte[] getAttachmentAsByteArray(String cid)
Specified by:
getAttachmentAsByteArray in class AttachmentUnmarshaller