Package com.sun.mail.handlers
Class image_gif
- java.lang.Object
-
- com.sun.mail.handlers.handler_base
-
- com.sun.mail.handlers.image_gif
-
- All Implemented Interfaces:
jakarta.activation.DataContentHandler
- Direct Known Subclasses:
image_jpeg
public class image_gif extends handler_base
DataContentHandler for image/gif.
-
-
Constructor Summary
Constructors Constructor Description image_gif()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContent(jakarta.activation.DataSource ds)protected jakarta.activation.ActivationDataFlavor[]getDataFlavors()Return an array of ActivationDataFlavors that we support.voidwriteTo(Object obj, String type, OutputStream os)Write the object to the output stream, using the specified MIME type.-
Methods inherited from class com.sun.mail.handlers.handler_base
getData, getTransferData, getTransferDataFlavors
-
-
-
-
Method Detail
-
getDataFlavors
protected jakarta.activation.ActivationDataFlavor[] getDataFlavors()
Description copied from class:handler_baseReturn an array of ActivationDataFlavors that we support. Usually there will be only one.- Specified by:
getDataFlavorsin classhandler_base- Returns:
- array of ActivationDataFlavors that we support
-
getContent
public Object getContent(jakarta.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
-
-