Class image_gif

java.lang.Object
com.sun.mail.handlers.handler_base
com.sun.mail.handlers.image_gif
All Implemented Interfaces:
javax.activation.DataContentHandler
Direct Known Subclasses:
image_jpeg

public class image_gif extends handler_base
DataContentHandler for image/gif.
  • Constructor Details

    • image_gif

      public image_gif()
  • Method Details

    • getDataFlavors

      protected javax.activation.ActivationDataFlavor[] getDataFlavors()
      Description copied from class: handler_base
      Return an array of ActivationDataFlavors that we support. Usually there will be only one.
      Specified by:
      getDataFlavors in class handler_base
      Returns:
      array of ActivationDataFlavors that we support
    • getContent

      public Object getContent(javax.activation.DataSource ds) throws IOException
      Throws:
      IOException
    • writeTo

      public void writeTo(Object obj, String type, OutputStream os) throws IOException
      Write the object to the output stream, using the specified MIME type.
      Throws:
      IOException