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.DataContentHandlerDataContentHandler 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.ObjectgetContent(javax.activation.DataSource ds)java.lang.ObjectgetTransferData(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.voidwriteTo(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:
getTransferDataFlavorsin interfacejavax.activation.DataContentHandler- Returns:
- The DataFlavors
-
getTransferData
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds) throws java.io.IOExceptionReturn the Transfer Data of type DataFlavor from InputStream.- Specified by:
getTransferDatain 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:
getContentin 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.IOExceptionWrite the object to the output stream, using the specified MIME type.- Specified by:
writeToin interfacejavax.activation.DataContentHandler- Throws:
java.io.IOException
-
-