com.ferri.portlet.utils
Class MailUtils.HTMLDataSource

java.lang.Object
  extended by com.ferri.portlet.utils.MailUtils.HTMLDataSource
All Implemented Interfaces:
DataSource
Enclosing class:
MailUtils

static class MailUtils.HTMLDataSource
extends Object
implements DataSource


Field Summary
private  String html
           
 
Constructor Summary
MailUtils.HTMLDataSource(String htmlString)
           
 
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

html

private String html
Constructor Detail

MailUtils.HTMLDataSource

public MailUtils.HTMLDataSource(String htmlString)
Method Detail

getInputStream

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

getOutputStream

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

getContentType

public String getContentType()
Specified by:
getContentType in interface DataSource

getName

public String getName()
Specified by:
getName in interface DataSource