public abstract class AbstractDataContentHandler extends Object implements DataContentHandler
| Constructor and Description |
|---|
AbstractDataContentHandler()
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Object |
computeContent(DataSource aDataSource)
Compute the content from aDataSource.
|
protected abstract ActivationDataFlavor |
computeDataFlavor()
Compute an ActivationDataFlavor.
|
Object |
getContent(DataSource aDataSource) |
protected ActivationDataFlavor |
getDataFlavor()
Get the DataFlavor, lazily initialised if required.
|
Object |
getTransferData(DataFlavor aDataFlavor,
DataSource aDataSource) |
DataFlavor[] |
getTransferDataFlavors() |
protected void |
setDataFlavor(ActivationDataFlavor aDataFlavor) |
protected void |
updateDataFlavor()
Update the current DataFlavor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwriteTopublic AbstractDataContentHandler()
protected void updateDataFlavor()
protected abstract ActivationDataFlavor computeDataFlavor()
protected void setDataFlavor(ActivationDataFlavor aDataFlavor)
public Object getContent(DataSource aDataSource) throws IOException
getContent in interface DataContentHandlerIOExceptionDataContentHandler.getContent(javax.activation.DataSource)protected abstract Object computeContent(DataSource aDataSource) throws javax.mail.MessagingException
aDataSource - javax.mail.MessagingExceptionpublic Object getTransferData(DataFlavor aDataFlavor, DataSource aDataSource) throws UnsupportedFlavorException, IOException
getTransferData in interface DataContentHandlerUnsupportedFlavorExceptionIOExceptionDataContentHandler.getTransferData(java.awt.datatransfer.DataFlavor,
javax.activation.DataSource)public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors in interface DataContentHandlerDataContentHandler.getTransferDataFlavors()protected ActivationDataFlavor getDataFlavor()
Copyright © 2015 OpenEstate. All rights reserved.