- java.lang.Object
-
- com.sun.mail.handlers.handler_base
-
- com.sun.mail.handlers.message_rfc822
-
- All Implemented Interfaces:
jakarta.activation.DataContentHandler
public class message_rfc822 extends handler_base
-
-
Constructor Summary
Constructors Constructor Description message_rfc822()Creates a defaultmessage_rfc822.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent(jakarta.activation.DataSource ds)Return the content.protected jakarta.activation.ActivationDataFlavor[]getDataFlavors()Return an array of ActivationDataFlavors that we support.voidwriteTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os)Write the object as a byte stream.-
Methods inherited from class com.sun.mail.handlers.handler_base
getData, getTransferData, getTransferDataFlavors
-
-
-
-
Method Detail
-
getDataFlavors
protected jakarta.activation.ActivationDataFlavor[] getDataFlavors()
Description copied from class:handler_baseReturn an array of ActivationDataFlavors that we support. Usually there will be only one.- Specified by:
getDataFlavorsin classhandler_base- Returns:
- array of ActivationDataFlavors that we support
-
getContent
public java.lang.Object getContent(jakarta.activation.DataSource ds) throws java.io.IOExceptionReturn the content.- Throws:
java.io.IOException
-
writeTo
public void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os) throws java.io.IOExceptionWrite the object as a byte stream.- Throws:
java.io.IOException
-
-