public class

text_xml

extends text_plain
java.lang.Object
   ↳ com.google.code.com.sun.mail.handlers.text_plain
     ↳ com.google.code.com.sun.mail.handlers.text_xml

Class Overview

DataContentHandler for text/xml.

Summary

Fields
private final DataFlavor[] flavors
[Expand]
Inherited Fields
From class com.google.code.com.sun.mail.handlers.text_plain
Public Constructors
text_xml()
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
From interface com.google.code.javax.activation.DataContentHandler

Fields

private final DataFlavor[] flavors

Public Constructors

public text_xml ()

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
Returns
  • the constructed Object
Throws
IOException

public DataFlavor[] getTransferDataFlavors ()

Return the DataFlavors for this DataContentHandler.

Returns
  • the DataFlavors

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.
Throws
IOException