java.lang.Object | +--gnu.mail.handler.TextAll Implemented Interfaces:
DataFlavor | Our favorite data flavor. |
Text(String mimeType, String description) Constructor specifying the data flavor. |
Object | getContent(DataSource source) Return an object representing the data in its most preferred form. |
static String | getJavaCharset(String contentType) Returns the Java character set corresponding to the MIME charset parameter of the content type value. |
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 Text(String mimeType, String description)
public Object getContent(DataSource source)
getTransferDataFlavors
method.
protected static String getJavaCharset(String contentType)
public Object getTransferData(DataFlavor flavor, DataSource source)
public DataFlavor[] getTransferDataFlavors()
public void writeTo(Object object, String mimeType, OutputStream out)