com.infoengine.procunit.email
Class InfoEngineDataSource

java.lang.Object
  extended bycom.infoengine.procunit.email.InfoEngineDataSource
All Implemented Interfaces:
javax.activation.DataSource

class InfoEngineDataSource
extends Object
implements javax.activation.DataSource

This class implements a typed DataSource from an Info*Engine Content object.


Field Summary
private  Content content
           
 
Constructor Summary
(package private) InfoEngineDataSource(Content content)
           
 
Method Summary
 String getContentType()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

content

private Content content
Constructor Detail

InfoEngineDataSource

InfoEngineDataSource(Content content)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface javax.activation.DataSource
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface javax.activation.DataSource
Throws:
IOException

getContentType

public String getContentType()
Specified by:
getContentType in interface javax.activation.DataSource

getName

public String getName()
Specified by:
getName in interface javax.activation.DataSource