|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.james.util.mail.handlers.AbstractDataContentHandler
public abstract class AbstractDataContentHandler
Abstract class providing common Data Handler behavior.
Constructor Summary | |
---|---|
AbstractDataContentHandler()
Default Constructor |
Method Summary | |
---|---|
protected abstract java.lang.Object |
computeContent(javax.activation.DataSource aDataSource)
Compute the content from aDataSource. |
protected abstract javax.activation.ActivationDataFlavor |
computeDataFlavor()
Compute an ActivationDataFlavor. |
java.lang.Object |
getContent(javax.activation.DataSource aDataSource)
|
protected javax.activation.ActivationDataFlavor |
getDataFlavor()
Get the DataFlavor, lazily initialised if required. |
java.lang.Object |
getTransferData(java.awt.datatransfer.DataFlavor aDataFlavor,
javax.activation.DataSource aDataSource)
|
java.awt.datatransfer.DataFlavor[] |
getTransferDataFlavors()
|
protected void |
setDataFlavor(javax.activation.ActivationDataFlavor aDataFlavor)
|
protected void |
updateDataFlavor()
Update the current DataFlavor. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.activation.DataContentHandler |
---|
writeTo |
Constructor Detail |
---|
public AbstractDataContentHandler()
Method Detail |
---|
protected void updateDataFlavor()
protected abstract javax.activation.ActivationDataFlavor computeDataFlavor()
protected void setDataFlavor(javax.activation.ActivationDataFlavor aDataFlavor)
public java.lang.Object getContent(javax.activation.DataSource aDataSource) throws java.io.IOException
getContent
in interface javax.activation.DataContentHandler
java.io.IOException
DataContentHandler.getContent(javax.activation.DataSource)
protected abstract java.lang.Object computeContent(javax.activation.DataSource aDataSource) throws javax.mail.MessagingException
aDataSource
-
javax.mail.MessagingException
public java.lang.Object getTransferData(java.awt.datatransfer.DataFlavor aDataFlavor, javax.activation.DataSource aDataSource) throws java.awt.datatransfer.UnsupportedFlavorException, java.io.IOException
getTransferData
in interface javax.activation.DataContentHandler
java.awt.datatransfer.UnsupportedFlavorException
java.io.IOException
DataContentHandler.getTransferData(java.awt.datatransfer.DataFlavor,
javax.activation.DataSource)
public java.awt.datatransfer.DataFlavor[] getTransferDataFlavors()
getTransferDataFlavors
in interface javax.activation.DataContentHandler
DataContentHandler.getTransferDataFlavors()
protected javax.activation.ActivationDataFlavor getDataFlavor()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |