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:
DataContentHandler

public class text_xml
extends text_plain

DataContentHandler for text/xml.

Author:
Anil Vijendran, Bill Shannon

Constructor Summary
text_xml()
           
 
Method Summary
 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.
 
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 DataFlavor[] getTransferDataFlavors()
Return the DataFlavors for this DataContentHandler.

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

getTransferData

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

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

writeTo

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

Specified by:
writeTo in interface DataContentHandler
Overrides:
writeTo in class text_plain
Throws:
IOException


Copyright © 2005-2015 Oracle Corporation. All Rights Reserved.