Class JpegDataContentHandler

java.lang.Object
java.awt.Component
com.sun.xml.messaging.saaj.soap.JpegDataContentHandler
All Implemented Interfaces:
jakarta.activation.DataContentHandler, ImageObserver, MenuContainer, Serializable

public class JpegDataContentHandler extends Component implements jakarta.activation.DataContentHandler
JAF data handler for Jpeg content
See Also:
  • Field Details

  • Constructor Details

    • JpegDataContentHandler

      public JpegDataContentHandler()
  • 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 df, jakarta.activation.DataSource ds)
      Return the Transfer Data of type DataFlavor from InputStream
      Specified by:
      getTransferData in interface jakarta.activation.DataContentHandler
      Parameters:
      df - The DataFlavor
      ds - The DataSource
      Returns:
      The constructed Object.
    • getContent

      public Object getContent(jakarta.activation.DataSource ds)
      Specified by:
      getContent in interface jakarta.activation.DataContentHandler
    • 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
      Parameters:
      obj - object to write
      mimeType - requested MIME type of the resulting byte stream
      os - OutputStream
      Throws:
      IOException