Package com.sun.mail.handlers
Class multipart_mixed
- java.lang.Object
-
- com.sun.mail.handlers.handler_base
-
- com.sun.mail.handlers.multipart_mixed
-
- All Implemented Interfaces:
javax.activation.DataContentHandler
public class multipart_mixed extends handler_base
-
-
Constructor Summary
Constructors Constructor Description multipart_mixed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectgetContent(javax.activation.DataSource ds)Return the content.protected javax.activation.ActivationDataFlavor[]getDataFlavors()Return an array of ActivationDataFlavors that we support.voidwriteTo(Object obj, String mimeType, OutputStream os)Write the object to the output stream, using the specific MIME type.-
Methods inherited from class com.sun.mail.handlers.handler_base
getData, getTransferData, getTransferDataFlavors
-
-
-
-
Method Detail
-
getDataFlavors
protected javax.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 Object getContent(javax.activation.DataSource ds) throws IOException
Return the content.- Throws:
IOException
-
writeTo
public void writeTo(Object obj, String mimeType, OutputStream os) throws IOException
Write the object to the output stream, using the specific MIME type.- Throws:
IOException
-
-