com.sun.mail.handlers
Class text_xml

java.lang.Object
  extended by com.sun.mail.handlers.text_plain
      extended by com.sun.mail.handlers.text_xml
All Implemented Interfaces:
javax.activation.DataContentHandler

public class text_xml
extends text_plain

DataContentHandler for text/xml.


Constructor Summary
text_xml()
           
 
Method Summary
 java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds)
          Return the Transfer Data of type DataFlavor from InputStream.
 java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
          Return the DataFlavors for this DataContentHandler.
 void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os)
          Write the object to the output stream, using the specified MIME type.
 
Methods inherited from class com.sun.mail.handlers.text_plain
getContent, getDF
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

text_xml

public text_xml()
Method Detail

getTransferDataFlavors

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

Specified by:
getTransferDataFlavors in interface javax.activation.DataContentHandler
Overrides:
getTransferDataFlavors in class text_plain
Returns:
the DataFlavors

getTransferData

public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df,
                                        javax.activation.DataSource ds)
                                 throws java.io.IOException
Return the Transfer Data of type DataFlavor from InputStream.

Specified by:
getTransferData in interface javax.activation.DataContentHandler
Overrides:
getTransferData in class text_plain
Parameters:
df - the DataFlavor
ds - the InputStream corresponding to the data
Returns:
the constructed Object
Throws:
java.io.IOException

writeTo

public void writeTo(java.lang.Object obj,
                    java.lang.String mimeType,
                    java.io.OutputStream os)
             throws java.io.IOException
Description copied from class: text_plain
Write the object to the output stream, using the specified MIME type.

Specified by:
writeTo in interface javax.activation.DataContentHandler
Overrides:
writeTo in class text_plain
Throws:
java.io.IOException