public abstract class handler_base
extends java.lang.Object
implements javax.activation.DataContentHandler
Constructor and Description |
---|
handler_base() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
getData(javax.activation.ActivationDataFlavor aFlavor,
javax.activation.DataSource ds)
Given the flavor that matched, return the appropriate type of object.
|
protected abstract javax.activation.ActivationDataFlavor[] |
getDataFlavors()
Return an array of ActivationDataFlavors that we support.
|
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 . |
protected abstract javax.activation.ActivationDataFlavor[] getDataFlavors()
protected java.lang.Object getData(javax.activation.ActivationDataFlavor aFlavor, javax.activation.DataSource ds) throws java.io.IOException
aFlavor
- the ActivationDataFlavords
- DataSource containing the datajava.io.IOException
- for errors reading the datapublic java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
DataContentHandler
.getTransferDataFlavors
in interface javax.activation.DataContentHandler
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor df, javax.activation.DataSource ds) throws java.io.IOException
getTransferData
in interface javax.activation.DataContentHandler
df
- The DataFlavords
- The DataSource corresponding to the datajava.io.IOException
- for errors reading the data