Class Overview
DataContentHandler for text/xml.
Summary
| Fields |
|
private
final
DataFlavor[] |
flavors |
|
| Public Methods |
|
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 mimeType, OutputStream os)
Write the object to the output stream, using the specified MIME type.
|
|
[Expand]
Inherited Methods |
From class
com.google.code.com.sun.mail.handlers.text_plain
|
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
private
final
DataFlavor[]
flavors
Public Constructors
Public Methods
public
Object
getTransferData
(DataFlavor df, DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.
Parameters
| df
| The DataFlavor |
| ds
| The InputStream corresponding to the data |
public
DataFlavor[]
getTransferDataFlavors
()
Return the DataFlavors for this DataContentHandler.
public
void
writeTo
(Object obj, String mimeType, OutputStream os)
Write the object to the output stream, using the specified 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. |