java.lang.Object | +--gnu.mail.handler.MultipartAll Implemented Interfaces:
DataFlavor | Our favorite data flavor. |
Multipart(String mimeType, String description) Constructor specifying the data flavor. |
Object | getContent(DataSource source) Return an object representing the data in its most preferred form. |
Object | getTransferData(DataFlavor flavor, DataSource source) Returns an object which represents the data to be transferred. |
DataFlavor[] | Returns an array of DataFlavor objects indicating the flavors the data can be provided in. |
void | writeTo(Object object, String mimeType, OutputStream out) Convert the object to a byte stream of the specified MIME type and write it to the output stream. |
protected DataFlavor flavor
protected Multipart(String mimeType, String description)
public Object getContent(DataSource source)
getTransferDataFlavors
method.
public Object getTransferData(DataFlavor flavor, DataSource source)
public DataFlavor[] getTransferDataFlavors()
public void writeTo(Object object, String mimeType, OutputStream out)