| java.lang.Object |
| ↳ |
com.google.code.com.sun.mail.handlers.text_plain |
Known Direct Subclasses
| text_html |
DataContentHandler for text/html. |
| text_xml |
DataContentHandler for text/xml. |
|
Class Overview
DataContentHandler for text/plain.
Summary
| Public Methods |
|
Object
|
getContent(DataSource ds)
Return an object representing the data in its most preferred form.
|
|
Object
|
getTransferData(DataFlavor df, DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.
|
|
DataFlavor[]
|
getTransferDataFlavors()
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.
|
|
[Expand]
Inherited Methods |
From class
java.lang.Object
|
Object
|
clone()
|
|
boolean
|
equals(Object arg0)
|
|
void
|
finalize()
|
|
final
Class<?>
|
getClass()
|
|
int
|
hashCode()
|
|
final
void
|
notify()
|
|
final
void
|
notifyAll()
|
|
String
|
toString()
|
|
final
void
|
wait()
|
|
final
void
|
wait(long arg0, int arg1)
|
|
final
void
|
wait(long arg0)
|
|
From interface
com.google.code.javax.activation.DataContentHandler
|
abstract
Object
|
getContent(DataSource ds)
Return an object representing the data in its most preferred form.
|
|
abstract
Object
|
getTransferData(DataFlavor df, DataSource ds)
Returns an object which represents the data to be transferred.
|
|
abstract
DataFlavor[]
|
getTransferDataFlavors()
Returns an array of DataFlavor objects indicating the flavors the
data can be provided in.
|
|
abstract
void
|
writeTo(Object obj, String mimeType, OutputStream os)
Convert the object to a byte stream of the specified MIME type
and write it to the output stream.
|
|
Fields
Public Constructors
Public Methods
public
Object
getContent
(DataSource ds)
Return an object representing the data in its most preferred form.
Generally this will be the form described by the first DataFlavor
returned by the getTransferDataFlavors method.
Parameters
| ds
| The DataSource representing the data to be converted. |
public
Object
getTransferData
(DataFlavor df, DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.
Parameters
| df
| The DataFlavor |
| ds
| The DataSource corresponding to the data |
public
DataFlavor[]
getTransferDataFlavors
()
Return the DataFlavors for this DataContentHandler.
public
void
writeTo
(Object obj, String type, OutputStream os)
Write the object to the output stream, using the specified MIME type.
Parameters
| obj
| The object to be converted. |
| type
| The requested MIME type of the resulting byte stream. |
| os
| The output stream into which to write the converted
byte stream. |
Protected Methods