com.sun.mail.handlers
类 image_gif

java.lang.Object
  继承者 com.sun.mail.handlers.image_gif
所有已实现的接口:
DataContentHandler
直接已知子类:
image_jpeg

public class image_gif
extends Object
implements DataContentHandler

DataContentHandler for image/gif.


构造方法摘要
image_gif()
           
 
方法摘要
 Object getContent(DataSource ds)
           
protected  ActivationDataFlavor getDF()
           
 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.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

image_gif

public image_gif()
方法详细信息

getDF

protected ActivationDataFlavor getDF()

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Return the DataFlavors for this DataContentHandler.

指定者:
接口 DataContentHandler 中的 getTransferDataFlavors
返回:
The DataFlavors

getTransferData

public Object getTransferData(DataFlavor df,
                              DataSource ds)
                       throws IOException
Return the Transfer Data of type DataFlavor from InputStream.

指定者:
接口 DataContentHandler 中的 getTransferData
参数:
df - The DataFlavor
ins - The InputStream corresponding to the data
返回:
String object
抛出:
IOException

getContent

public Object getContent(DataSource ds)
                  throws IOException
指定者:
接口 DataContentHandler 中的 getContent
抛出:
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.

指定者:
接口 DataContentHandler 中的 writeTo
抛出:
IOException


Copyright © 2013. All Rights Reserved.