public final class ResourceDataSource extends Object implements DataSource
Constructor and Description |
---|
ResourceDataSource(Resource res)
Constructor of the class
|
Modifier and Type | Method and Description |
---|---|
String |
getContentType()
Get content type.
|
InputStream |
getInputStream()
Get input stream.
|
String |
getName()
Get name.
|
OutputStream |
getOutputStream()
Get output stream.
|
Resource |
getResource()
Get Resource.
|
public ResourceDataSource(Resource res)
res
- sourcepublic String getName()
getName
in interface DataSource
public Resource getResource()
public InputStream getInputStream() throws IOException
getInputStream
in interface DataSource
IOException
- IO exception occurredpublic String getContentType()
getContentType
in interface DataSource
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface DataSource
IOException
- IO exception occurredCopyright © 2015 Lucee