Package com.sun.mail.dsn
Class text_rfc822headers
- java.lang.Object
-
- com.sun.mail.dsn.text_rfc822headers
-
- All Implemented Interfaces:
javax.activation.DataContentHandler
public class text_rfc822headers extends java.lang.Object implements javax.activation.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 Constructor Description text_rfc822headers()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent(javax.activation.DataSource ds)
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 type, java.io.OutputStream os)
Write the object to the output stream, using the specified 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
- Specified by:
getContent
in interfacejavax.activation.DataContentHandler
- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.lang.Object obj, java.lang.String type, java.io.OutputStream os) throws java.io.IOException
Write the object to the output stream, using the specified MIME type.- Specified by:
writeTo
in interfacejavax.activation.DataContentHandler
- Throws:
java.io.IOException
-
-