Package com.sun.mail.dsn
Class text_rfc822headers
java.lang.Object
com.sun.mail.dsn.text_rfc822headers
- All Implemented Interfaces:
DataContentHandler
DataContentHandler for text/rfc822-headers 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) getTransferData
(DataFlavor df, DataSource ds) Return the Transfer Data of type DataFlavor from InputStream.Return the DataFlavors for thisDataContentHandler
.void
writeTo
(Object obj, String type, OutputStream os) Write the object to the output stream, using the specified MIME type.
-
Constructor Details
-
text_rfc822headers
public text_rfc822headers()
-
-
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
- Specified by:
getContent
in interfaceDataContentHandler
- Throws:
IOException
-
writeTo
Write the object to the output stream, using the specified MIME type.- Specified by:
writeTo
in interfaceDataContentHandler
- Throws:
IOException
-