Package com.sun.mail.dsn
Class multipart_report
- java.lang.Object
-
- com.sun.mail.dsn.multipart_report
-
- All Implemented Interfaces:
javax.activation.DataContentHandler
public class multipart_report extends java.lang.Object implements javax.activation.DataContentHandler
DataContentHandler for multipart/report MIME type. Applications should not use this class directly, it's used indirectly through the JavaBeans Activation Framework.- Since:
- JavaMail 1.4
-
-
Constructor Summary
Constructors Constructor Description multipart_report()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent(javax.activation.DataSource ds)
Return the content.java.lang.Object
getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.java.awt.datatransfer.DataFlavor[]
getTransferDataFlavors()
Return the DataFlavors for thisDataContentHandler
.void
writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os)
Write the object to the output stream, using the specific MIME type.
-
-
-
Method Detail
-
getTransferDataFlavors
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
Return the DataFlavors for thisDataContentHandler
.- Specified by:
getTransferDataFlavors
in interfacejavax.activation.DataContentHandler
- Returns:
- The DataFlavors
-
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds) throws java.io.IOException
Return the Transfer Data of type DataFlavor from InputStream.- Specified by:
getTransferData
in interfacejavax.activation.DataContentHandler
- Parameters:
df
- The DataFlavords
- The DataSource corresponding to the data- Returns:
- String object
- Throws:
java.io.IOException
-
getContent
public java.lang.Object getContent(javax.activation.DataSource ds) throws java.io.IOException
Return the content.- Specified by:
getContent
in interfacejavax.activation.DataContentHandler
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os) throws java.io.IOException
Write the object to the output stream, using the specific MIME type.- Specified by:
writeTo
in interfacejavax.activation.DataContentHandler
- Throws:
java.io.IOException
-
-