public class XmlDataContentHandler
extends java.lang.Object
implements javax.activation.DataContentHandler
Modifier and Type | Field and Description |
---|---|
java.lang.String |
STR_SRC |
Constructor and Description |
---|
XmlDataContentHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getContent(javax.activation.DataSource dataSource) |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor flavor,
javax.activation.DataSource dataSource)
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)
construct an object from a byte stream
(similar semantically to previous method, we are deciding
which one to support)
|
public final java.lang.String STR_SRC
public XmlDataContentHandler() throws java.lang.ClassNotFoundException
java.lang.ClassNotFoundException
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
DataContentHandler
getTransferDataFlavors
in interface javax.activation.DataContentHandler
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor flavor, javax.activation.DataSource dataSource) throws java.io.IOException
getTransferData
in interface javax.activation.DataContentHandler
df
- The DataFlavor.ins
- The InputStream corresponding to the data.java.io.IOException
public java.lang.Object getContent(javax.activation.DataSource dataSource) throws java.io.IOException
getContent
in interface javax.activation.DataContentHandler
java.io.IOException
public void writeTo(java.lang.Object obj, java.lang.String mimeType, java.io.OutputStream os) throws java.io.IOException
writeTo
in interface javax.activation.DataContentHandler
java.io.IOException