railo.commons.activation
Class ResourceDataSource

java.lang.Object
  extended by railo.commons.activation.ResourceDataSource
All Implemented Interfaces:
DataSource

public final class ResourceDataSource
extends Object
implements DataSource

File Data Source.


Constructor Summary
ResourceDataSource(Resource res)
          Constructor of the class
 
Method Summary
 String getContentType()
          Get content type.
 InputStream getInputStream()
          Get input stream.
 String getName()
          Get name.
 OutputStream getOutputStream()
          Get output stream.
 Resource getResource()
          Get Resource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceDataSource

public ResourceDataSource(Resource res)
Constructor of the class

Parameters:
res - source
Method Detail

getName

public String getName()
Get name.

Specified by:
getName in interface DataSource

getResource

public Resource getResource()
Get Resource.


getInputStream

public InputStream getInputStream()
                           throws IOException
Get input stream.

Specified by:
getInputStream in interface DataSource
Throws:
IOException - IO exception occurred

getContentType

public String getContentType()
Get content type.

Specified by:
getContentType in interface DataSource

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Get output stream.

Specified by:
getOutputStream in interface DataSource
Throws:
IOException - IO exception occurred


Copyright © 2012 Railo