public abstract class handler_base extends Object implements jakarta.activation.DataContentHandler
| Constructor and Description |
|---|
handler_base() |
| Modifier and Type | Method and Description |
|---|---|
protected Object |
getData(jakarta.activation.ActivationDataFlavor aFlavor,
jakarta.activation.DataSource ds)
Given the flavor that matched, return the appropriate type of object.
|
protected abstract jakarta.activation.ActivationDataFlavor[] |
getDataFlavors()
Return an array of ActivationDataFlavors that we support.
|
Object |
getTransferData(jakarta.activation.ActivationDataFlavor df,
jakarta.activation.DataSource ds)
Return the Transfer Data of type ActivationDataFlavor from InputStream.
|
jakarta.activation.ActivationDataFlavor[] |
getTransferDataFlavors()
Return the ActivationDataFlavors for this
DataContentHandler. |
protected abstract jakarta.activation.ActivationDataFlavor[] getDataFlavors()
protected Object getData(jakarta.activation.ActivationDataFlavor aFlavor, jakarta.activation.DataSource ds) throws IOException
aFlavor - the ActivationDataFlavords - DataSource containing the dataIOException - for errors reading the datapublic jakarta.activation.ActivationDataFlavor[] getTransferDataFlavors()
DataContentHandler.getTransferDataFlavors in interface jakarta.activation.DataContentHandlerpublic Object getTransferData(jakarta.activation.ActivationDataFlavor df, jakarta.activation.DataSource ds) throws IOException
getTransferData in interface jakarta.activation.DataContentHandlerdf - The ActivationDataFlavords - The DataSource corresponding to the dataIOException - for errors reading the dataCopyright © 2017–2020 Oracle. All rights reserved.