This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.


com.sun.mail.handlers
class text_plain

com.sun.mail.handlers.text_plain
All Implemented Interfaces:
DataContentHandler
Direct Known Subclasses:
text_html, text_xml

public class text_plain
extends Object
implements DataContentHandler

DataContentHandler for text/plain.


Constructor Summary

          
 
Method Summary
 Object

          
protected ActivationDataFlavor

          
 Object

          Return the Transfer Data of type DataFlavor from InputStream.
 DataFlavor[]

          Return the DataFlavors for this DataContentHandler.
 void
writeTo(Object obj, String type, OutputStream os)

          Write the object to the output stream, using the specified MIME type.
 

Constructor Detail

text_plain

public text_plain()
Method Detail

getContent

public Object getContent(DataSource ds)
                  throws IOException
Parameters:
ds
Throws:
IOException

getDF

protected ActivationDataFlavor getDF()

getTransferData

public Object getTransferData(DataFlavor df,
                              DataSource ds)
                       throws IOException
Return the Transfer Data of type DataFlavor from InputStream.

Parameters:
df - The DataFlavor
ds - The DataSource corresponding to the data
Returns:
String object
Throws:
IOException

getTransferDataFlavors

public DataFlavor[] getTransferDataFlavors()
Return the DataFlavors for this DataContentHandler.

Returns:
The DataFlavors

writeTo

public void writeTo(Object obj,
                    String type,
                    OutputStream os)
             throws IOException
Write the object to the output stream, using the specified MIME type.

Parameters:
obj
type
os
Throws:
IOException


This documentation differs from the official API. Jadeite adds extra features to the API including: variable font sizes, constructions examples, placeholders for classes and methods, and auto-generated “See Also” links. Additionally it is missing some items found in standard Javadoc documentation, including: generics type information, “Deprecated” tags and comments, “See Also” links, along with other minor differences. Please send any questions or feedback to bam@cs.cmu.edu.
This page displays the Jadeite version of the documention. The official Sun™ documentation can be found here at http://java.sun.com/products/javamail/javadocs/index.html.