public interface DataContentHandler
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContent(DataSource ds)
Returns an object representing the data in its most preferred form.
|
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor df,
DataSource ds)
Returns an object representing the data to be transferred.
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
Returns a list of the flavors that data can be provided in, ordered
by preference.
|
void |
writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
Writes the object as a stream of bytes.
|
java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df,
DataSource ds)
throws java.awt.datatransfer.UnsupportedFlavorException,
java.io.IOException
df - the flavor representing the requested typeds - the data source of the data to be convertedjava.awt.datatransfer.UnsupportedFlavorExceptionjava.io.IOExceptionjava.lang.Object getContent(DataSource ds) throws java.io.IOException
ds - the data source of the data to be convertedjava.io.IOExceptionvoid writeTo(java.lang.Object obj,
java.lang.String mimeType,
java.io.OutputStream os)
throws java.io.IOException
obj - the object to convertmimeType - the MIME type of the streamos - the byte streamjava.io.IOException