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:
- javax.activation.DataContentHandler
public class text_xml
- extends text_plain
DataContentHandler for 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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
text_xml
public text_xml()
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 DataFlavords
- 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