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, wait
writeTo
public AbstractDataContentHandler()
protected void updateDataFlavor()
protected abstract ActivationDataFlavor computeDataFlavor()
protected void setDataFlavor(ActivationDataFlavor aDataFlavor)
public Object getContent(DataSource aDataSource) throws IOException
getContent
in interface DataContentHandler
IOException
DataContentHandler.getContent(javax.activation.DataSource)
protected abstract Object computeContent(DataSource aDataSource) throws javax.mail.MessagingException
aDataSource
- javax.mail.MessagingException
public Object getTransferData(DataFlavor aDataFlavor, DataSource aDataSource) throws UnsupportedFlavorException, IOException
getTransferData
in interface DataContentHandler
UnsupportedFlavorException
IOException
DataContentHandler.getTransferData(java.awt.datatransfer.DataFlavor,
javax.activation.DataSource)
public DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface DataContentHandler
DataContentHandler.getTransferDataFlavors()
protected ActivationDataFlavor getDataFlavor()
Copyright © 2015 OpenEstate. All rights reserved.