public abstract class handler_base extends Object implements DataContentHandler
| Constructor and Description |
|---|
handler_base() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getData(ActivationDataFlavor aFlavor,
DataSource ds)
Given the flavor that matched, return the appropriate type of object.
|
protected abstract ActivationDataFlavor[] |
getDataFlavors()
Return an array of ActivationDataFlavors that we support.
|
Object |
getTransferData(DataFlavor df,
DataSource ds)
Return the Transfer Data of type DataFlavor from InputStream.
|
DataFlavor[] |
getTransferDataFlavors()
Return the DataFlavors for this
DataContentHandler. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetContent, writeToprotected abstract ActivationDataFlavor[] getDataFlavors()
protected Object getData(ActivationDataFlavor aFlavor, DataSource ds) throws IOException
IOExceptionpublic DataFlavor[] getTransferDataFlavors()
DataContentHandler.getTransferDataFlavors in interface DataContentHandlerpublic Object getTransferData(DataFlavor df, DataSource ds) throws IOException
getTransferData in interface DataContentHandlerdf - The DataFlavords - The DataSource corresponding to the dataIOException - if the data can't be accessedCopyright © 2016 JBoss by Red Hat. All rights reserved.