|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectrailo.commons.activation.ResourceDataSource
public final class ResourceDataSource
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 |
---|
public ResourceDataSource(Resource res)
res
- sourceMethod Detail |
---|
public 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 occurred
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |