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:
DataContentHandler
public class multipart_mixed extends handler_base
-
-
Field Summary
Fields Modifier and Type Field Description private static ActivationDataFlavor[]
myDF
-
Constructor Summary
Constructors Constructor Description multipart_mixed()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent(DataSource ds)
Return the content.protected ActivationDataFlavor[]
getDataFlavors()
Return an array of ActivationDataFlavors that we support.void
writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.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
-
-
-
-
Field Detail
-
myDF
private static ActivationDataFlavor[] myDF
-
-
Method Detail
-
getDataFlavors
protected ActivationDataFlavor[] getDataFlavors()
Description copied from class:handler_base
Return an array of ActivationDataFlavors that we support. Usually there will be only one.- Specified by:
getDataFlavors
in classhandler_base
- Returns:
- array of ActivationDataFlavors that we support
-
getContent
public java.lang.Object getContent(DataSource ds) throws java.io.IOException
Return the content.- Parameters:
ds
- The DataSource representing the data to be converted.- Returns:
- The constructed Object.
- Throws:
java.io.IOException
- if the data can't be accessed
-
writeTo
public void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os) throws java.io.IOException
Write the object to the output stream, using the specific MIME type.- Parameters:
obj
- The object to be converted.mimeType
- The requested MIME type of the resulting byte stream.os
- The output stream into which to write the converted byte stream.- Throws:
java.io.IOException
- errors writing to the stream
-
-