public abstract class handler_base extends Object implements DataContentHandler
| 构造器和说明 |
|---|
handler_base() |
| 限定符和类型 | 方法和说明 |
|---|---|
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
aFlavor - the ActivationDataFlavords - DataSource containing the dataIOException - for errors reading the datapublic DataFlavor[] getTransferDataFlavors()
DataContentHandler.getTransferDataFlavors 在接口中 DataContentHandlerpublic Object getTransferData(DataFlavor df, DataSource ds) throws IOException
getTransferData 在接口中 DataContentHandlerdf - The DataFlavords - The DataSource corresponding to the dataIOException - for errors reading the dataCopyright © 2021 Oracle. All rights reserved.