Class XmlDataContentHandler

java.lang.Object
com.sun.xml.messaging.saaj.soap.XmlDataContentHandler
All Implemented Interfaces:
jakarta.activation.DataContentHandler

public class XmlDataContentHandler extends Object implements jakarta.activation.DataContentHandler
JAF data handler for XML content
  • Constructor Details

    • XmlDataContentHandler

      public XmlDataContentHandler()
  • Method Details

    • getTransferDataFlavors

      public jakarta.activation.ActivationDataFlavor[] getTransferDataFlavors()
      return the DataFlavors for this DataContentHandler
      Specified by:
      getTransferDataFlavors in interface jakarta.activation.DataContentHandler
      Returns:
      The DataFlavors.
    • getTransferData

      public Object getTransferData(jakarta.activation.ActivationDataFlavor flavor, jakarta.activation.DataSource dataSource) throws IOException
      return the Transfer Data of type DataFlavor from InputStream
      Specified by:
      getTransferData in interface jakarta.activation.DataContentHandler
      Parameters:
      flavor - The DataFlavor.
      dataSource - The DataSource.
      Returns:
      The constructed Object.
      Throws:
      IOException
    • getContent

      public Object getContent(jakarta.activation.DataSource dataSource) throws IOException
      Specified by:
      getContent in interface jakarta.activation.DataContentHandler
      Throws:
      IOException
    • writeTo

      public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
      construct an object from a byte stream (similar semantically to previous method, we are deciding which one to support)
      Specified by:
      writeTo in interface jakarta.activation.DataContentHandler
      Throws:
      IOException