railo.runtime.net.smtp
Class URLDataSource2

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

public final class URLDataSource2
extends Object
implements DataSource


Constructor Summary
URLDataSource2(URL url)
          Creates a URLDataSource from a URL object
 
Method Summary
 String getContentType()
          Returns the value of the URL content-type header field
 InputStream getInputStream()
          Returns an InputStream obtained from the data source
 String getName()
          Returns the file name of the URL object
 OutputStream getOutputStream()
          Returns an OutputStream obtained from the data source
 URL getURL()
          Returns the URL of the data source
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

URLDataSource2

public URLDataSource2(URL url)
Creates a URLDataSource from a URL object

Method Detail

getContentType

public String getContentType()
Returns the value of the URL content-type header field

Specified by:
getContentType in interface DataSource

getName

public String getName()
Returns the file name of the URL object

Specified by:
getName in interface DataSource

getInputStream

public InputStream getInputStream()
                           throws IOException
Returns an InputStream obtained from the data source

Specified by:
getInputStream in interface DataSource
Throws:
IOException

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Returns an OutputStream obtained from the data source

Specified by:
getOutputStream in interface DataSource
Throws:
IOException

getURL

public URL getURL()
Returns the URL of the data source



Copyright © 2012 Railo