Package com.sun.mail.dsn
Class multipart_report
java.lang.Object
com.sun.mail.dsn.multipart_report
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptiongetContent
(DataSource ds) Return the content.getTransferData
(DataFlavor df, DataSource ds) Return the Transfer Data of type DataFlavor from InputStream.Return the DataFlavors for thisDataContentHandler
.void
writeTo
(Object obj, String mimeType, OutputStream os) Write the object to the output stream, using the specific MIME type.
-
Constructor Details
-
multipart_report
public multipart_report()
-
-
Method Details
-
getTransferDataFlavors
Return the DataFlavors for thisDataContentHandler
.- Specified by:
getTransferDataFlavors
in interfaceDataContentHandler
- Returns:
- The DataFlavors
-
getTransferData
Return the Transfer Data of type DataFlavor from InputStream.- Specified by:
getTransferData
in interfaceDataContentHandler
- Parameters:
df
- The DataFlavords
- The DataSource corresponding to the data- Returns:
- String object
- Throws:
IOException
-
getContent
Return the content.- Specified by:
getContent
in interfaceDataContentHandler
- Throws:
IOException
-
writeTo
Write the object to the output stream, using the specific MIME type.- Specified by:
writeTo
in interfaceDataContentHandler
- Throws:
IOException
-