org.apache.cocoon.mail.datasource
Class SourceDataSource
java.lang.Object
org.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.mail.datasource.AbstractDataSource
org.apache.cocoon.mail.datasource.SourceDataSource
- All Implemented Interfaces:
- DataSource
- public class SourceDataSource
- extends AbstractDataSource
The SourceDataSource class provides an object, that wraps a
Cocoon org.apache.excalibur.source.Source object
in a DataSource interface.
- Version:
- $Id: SourceDataSource.java 587761 2007-10-24 03:08:05Z vgritsenko $
- See Also:
Source,
DataSource
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceDataSource
public SourceDataSource(Source src)
- Creates a new instance of SourceDataSource.
- Parameters:
src - A org.apache.excalibur.source.Source Object.
SourceDataSource
public SourceDataSource(Source src,
String type,
String name)
- Creates a new instance of SourceDataSource.
- Parameters:
src - A org.apache.excalibur.source.Source Object.
getInputStream
public InputStream getInputStream()
throws IOException
- Get the
InputStream object from the
Source object.
- Specified by:
getInputStream in interface DataSource- Specified by:
getInputStream in class AbstractDataSource
- Returns:
- The InputStream object from the
Source object.
- Throws:
IOException - if an I/O error occurs.- See Also:
Source.getInputStream()
Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.