com.sun.mail.dsn
类 text_rfc822headers

java.lang.Object
  继承者 com.sun.mail.dsn.text_rfc822headers
所有已实现的接口:
DataContentHandler

public class text_rfc822headers
extends Object
implements DataContentHandler

DataContentHandler for text/rfc822-headers.

版本:
1.4, 07/05/04

构造方法摘要
text_rfc822headers()
           
 
方法摘要
 Object getContent(DataSource ds)
           
 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
 

构造方法详细信息

text_rfc822headers

public text_rfc822headers()
方法详细信息

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
ds - The DataSource 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.