com.openexchange.mail.conversion
Class InlineImageDataSource

java.lang.Object
  extended by com.openexchange.mail.conversion.InlineImageDataSource
All Implemented Interfaces:
com.openexchange.conversion.DataSource, com.openexchange.image.ImageDataSource

public final class InlineImageDataSource
extends java.lang.Object
implements com.openexchange.image.ImageDataSource

InlineImageDataSource - A DataSource for image parts inside a mail.

Author:
Thorben Betten

Constructor Summary
InlineImageDataSource()
          Initializes a new InlineImageDataSource
 
Method Summary
<D> com.openexchange.conversion.Data<D>
getData(java.lang.Class<? extends D> type, com.openexchange.conversion.DataArguments dataArguments, com.openexchange.session.Session session)
           
 java.lang.String getRegistrationName()
          Gets this data source's registration name.
 java.lang.String[] getRequiredArguments()
          Common required arguments for uniquely determining a mail part: com.openexchange.mail.conversion.fullname com.openexchange.mail.conversion.mailid com.openexchange.mail.conversion.cid
 java.lang.Class<?>[] getTypes()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InlineImageDataSource

public InlineImageDataSource()
Initializes a new InlineImageDataSource

Method Detail

getRequiredArguments

public java.lang.String[] getRequiredArguments()
Common required arguments for uniquely determining a mail part:

Specified by:
getRequiredArguments in interface com.openexchange.conversion.DataSource

getTypes

public java.lang.Class<?>[] getTypes()
Specified by:
getTypes in interface com.openexchange.conversion.DataSource

getData

public <D> com.openexchange.conversion.Data<D> getData(java.lang.Class<? extends D> type,
                                                       com.openexchange.conversion.DataArguments dataArguments,
                                                       com.openexchange.session.Session session)
                                            throws com.openexchange.conversion.DataException
Specified by:
getData in interface com.openexchange.conversion.DataSource
Throws:
com.openexchange.conversion.DataException

getRegistrationName

public java.lang.String getRegistrationName()
Description copied from interface: com.openexchange.image.ImageDataSource
Gets this data source's registration name.

Specified by:
getRegistrationName in interface com.openexchange.image.ImageDataSource
Returns:
The registration name