- java.lang.Object
-
- org.eclipse.angus.mail.dsn.text_rfc822headers
-
- All Implemented Interfaces:
jakarta.activation.DataContentHandler
public class text_rfc822headers extends java.lang.Object implements jakarta.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()Creates a defaulttext_rfc822headers.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent(jakarta.activation.DataSource ds)java.lang.ObjectgetTransferData(jakarta.activation.ActivationDataFlavor df, jakarta.activation.DataSource ds)Return the Transfer Data of type ActivationDataFlavor from InputStream.jakarta.activation.ActivationDataFlavor[]getTransferDataFlavors()Return the ActivationDataFlavors 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 jakarta.activation.ActivationDataFlavor[] getTransferDataFlavors()
Return the ActivationDataFlavors for thisDataContentHandler.- Specified by:
getTransferDataFlavorsin interfacejakarta.activation.DataContentHandler- Returns:
- The ActivationDataFlavors
-
getTransferData
public java.lang.Object getTransferData(jakarta.activation.ActivationDataFlavor df, jakarta.activation.DataSource ds) throws java.io.IOExceptionReturn the Transfer Data of type ActivationDataFlavor from InputStream.- Specified by:
getTransferDatain interfacejakarta.activation.DataContentHandler- Parameters:
df- The ActivationDataFlavords- The DataSource corresponding to the data- Returns:
- String object
- Throws:
java.io.IOException
-
getContent
public java.lang.Object getContent(jakarta.activation.DataSource ds) throws java.io.IOException- Specified by:
getContentin interfacejakarta.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 interfacejakarta.activation.DataContentHandler- Throws:
java.io.IOException
-
-