public class

image_gif

extends Object
implements DataContentHandler
java.lang.Object
   ↳ com.google.code.com.sun.mail.handlers.image_gif
Known Direct Subclasses

Class Overview

DataContentHandler for image/gif.

Summary

Fields
private static ActivationDataFlavor myDF
Public Constructors
image_gif()
Public Methods
Object getContent(DataSource ds)
Return an object representing the data in its most preferred form.
Object getTransferData(DataFlavor df, DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.
DataFlavor[] getTransferDataFlavors()
Return the DataFlavors for this DataContentHandler.
void writeTo(Object obj, String type, OutputStream os)
Write the object to the output stream, using the specified MIME type.
Protected Methods
ActivationDataFlavor getDF()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.google.code.javax.activation.DataContentHandler

Fields

private static ActivationDataFlavor myDF

Public Constructors

public image_gif ()

Public Methods

public Object getContent (DataSource ds)

Return an object representing the data in its most preferred form. Generally this will be the form described by the first DataFlavor returned by the getTransferDataFlavors method.

Parameters
ds The DataSource representing the data to be converted.
Returns
  • The constructed Object.
Throws
IOException

public Object getTransferData (DataFlavor df, DataSource ds)

Return the Transfer Data of type DataFlavor from InputStream.

Parameters
df The DataFlavor
ds The DataSource representing the data to be converted.
Returns
  • String object
Throws
IOException

public DataFlavor[] getTransferDataFlavors ()

Return the DataFlavors for this DataContentHandler.

Returns
  • The DataFlavors

public void writeTo (Object obj, String type, OutputStream os)

Write the object to the output stream, using the specified MIME type.

Parameters
obj The object to be converted.
type The requested MIME type of the resulting byte stream.
os The output stream into which to write the converted byte stream.
Throws
IOException

Protected Methods

protected ActivationDataFlavor getDF ()