Class NonReadingAttachmentMarshaller

java.lang.Object
javax.xml.bind.attachment.AttachmentMarshaller
org.openehealth.ipf.commons.ihe.ws.cxf.NonReadingAttachmentMarshaller

public class NonReadingAttachmentMarshaller extends javax.xml.bind.attachment.AttachmentMarshaller
An attachment marshaller implementation which does not read any data from the provided data handlers in order to keep all streams usable.
Author:
Dmytro Rud
  • Constructor Details

    • NonReadingAttachmentMarshaller

      public NonReadingAttachmentMarshaller()
  • Method Details

    • isXOPPackage

      public boolean isXOPPackage()
      Overrides:
      isXOPPackage in class javax.xml.bind.attachment.AttachmentMarshaller
    • addMtomAttachment

      public String addMtomAttachment(javax.activation.DataHandler data, String elementNamespace, String elementLocalName)
      Specified by:
      addMtomAttachment in class javax.xml.bind.attachment.AttachmentMarshaller
    • addMtomAttachment

      public String addMtomAttachment(byte[] data, int offset, int length, String mimeType, String elementNamespace, String elementLocalName)
      Specified by:
      addMtomAttachment in class javax.xml.bind.attachment.AttachmentMarshaller
    • addSwaRefAttachment

      public String addSwaRefAttachment(javax.activation.DataHandler data)
      Specified by:
      addSwaRefAttachment in class javax.xml.bind.attachment.AttachmentMarshaller