- java.lang.Object
-
- org.eclipse.angus.mail.dsn.multipart_report
-
- All Implemented Interfaces:
jakarta.activation.DataContentHandler
public class multipart_report extends java.lang.Object implements jakarta.activation.DataContentHandlerDataContentHandler for multipart/report 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 multipart_report()Creates a defaultmultipart_report.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ObjectgetContent(jakarta.activation.DataSource ds)Return the content.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 mimeType, java.io.OutputStream os)Write the object to the output stream, using the specific 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.IOExceptionReturn the content.- Specified by:
getContentin interfacejakarta.activation.DataContentHandler- 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 to the output stream, using the specific MIME type.- Specified by:
writeToin interfacejakarta.activation.DataContentHandler- Throws:
java.io.IOException
-
-