railo.runtime.net.smtp
Class StringDataSource

java.lang.Object
  extended by railo.runtime.net.smtp.StringDataSource
All Implemented Interfaces:
DataSource

public final class StringDataSource
extends Object
implements DataSource


Constructor Summary
StringDataSource(String text, String ct, String charset)
           
 
Method Summary
 String getContentType()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringDataSource

public StringDataSource(String text,
                        String ct,
                        String charset)
Method Detail

getContentType

public String getContentType()
Specified by:
getContentType in interface DataSource
See Also:
DataSource.getContentType()

getInputStream

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

getName

public String getName()
Specified by:
getName in interface DataSource
See Also:
DataSource.getName()

getOutputStream

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


Copyright © 2012 Railo