|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.cocoon.mail.datasource.SourceDataSource
The SourceDataSource class provides an object, that wraps a
Cocoon org.apache.excalibur.source.Source object
in a DataSource interface.
Source,
DataSource| Constructor Summary | |
SourceDataSource(Source src)
Creates a new instance of SourceDataSource |
|
SourceDataSource(Source src,
String type,
String name)
Creates a new instance of SourceDataSource |
|
| Method Summary | |
String |
getContentType()
Returns the result of a call to the Source
objects getMimeType() method. |
InputStream |
getInputStream()
Get the InputStream object from the
Source object. |
String |
getName()
Returns the name for this DataSource object. |
OutputStream |
getOutputStream()
Unimplemented. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SourceDataSource(Source src)
src - A org.apache.excalibur.source.Source Object.
public SourceDataSource(Source src,
String type,
String name)
src - A org.apache.excalibur.source.Source Object.| Method Detail |
public String getContentType()
Source
objects getMimeType() method. Returns
"application/octet-stream", if getMimeType()
returns null.
getContentType in interface DataSourceDataSource object.Source.getMimeType()
public InputStream getInputStream()
throws IOException
InputStream object from the
Source object.
getInputStream in interface DataSourceSource object.
IOException - if an I/O error occurs.Source.getInputStream()public String getName()
DataSource object. This is
actually the last path component (after the last '/') from the value
returned by the getURI() method of the Source
object.
getName in interface DataSourceDataSourceSource.getURI()
public OutputStream getOutputStream()
throws IOException
IOException.
getOutputStream in interface DataSourceIOException - since unimplemented
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||