public abstract class handler_base extends Object implements javax.activation.DataContentHandler
| Constructor and Description |
|---|
handler_base() |
| Modifier and Type | Method and Description |
|---|---|
protected 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.
|
Object |
getTransferData(DataFlavor df,
javax.activation.DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.
|
DataFlavor[] |
getTransferDataFlavors()
Return the DataFlavors for this
DataContentHandler. |
protected abstract javax.activation.ActivationDataFlavor[] getDataFlavors()
protected Object getData(javax.activation.ActivationDataFlavor aFlavor, javax.activation.DataSource ds) throws IOException
IOExceptionpublic DataFlavor[] getTransferDataFlavors()
DataContentHandler.getTransferDataFlavors in interface javax.activation.DataContentHandlerpublic Object getTransferData(DataFlavor df, javax.activation.DataSource ds) throws IOException
getTransferData in interface javax.activation.DataContentHandlerdf - The DataFlavords - The DataSource corresponding to the dataIOExceptionCopyright © 2016 Oracle. All rights reserved.