com.sun.mail.handlers
Class text_xml
java.lang.Object
com.sun.mail.handlers.text_plain
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text_xml
public text_xml()
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 DataFlavords - 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.