com.sun.mail.dsn
类 multipart_report

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

public class multipart_report
extends Object
implements DataContentHandler


构造方法摘要
multipart_report()
           
 
方法摘要
 Object getContent(DataSource ds)
          Return the content.
 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 mimeType, OutputStream os)
          Write the object to the output stream, using the specific MIME type.
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

multipart_report

public multipart_report()
方法详细信息

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
Return the content.

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

writeTo

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

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


Copyright © 2013. All Rights Reserved.