Package org.pentaho.commons.connection
Class ActivationHelper.DatasourceWrapper
- java.lang.Object
-
- org.pentaho.commons.connection.ActivationHelper.DatasourceWrapper
-
- All Implemented Interfaces:
IPentahoStreamSource
- Enclosing class:
- ActivationHelper
public static final class ActivationHelper.DatasourceWrapper extends Object implements IPentahoStreamSource
-
-
Constructor Summary
Constructors Constructor Description DatasourceWrapper(DataSource ds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Constructor Detail
-
DatasourceWrapper
public DatasourceWrapper(DataSource ds)
-
-
Method Detail
-
getContentType
public String getContentType()
- Specified by:
getContentTypein interfaceIPentahoStreamSource
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceIPentahoStreamSource- Throws:
IOException
-
getName
public String getName()
- Specified by:
getNamein interfaceIPentahoStreamSource
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceIPentahoStreamSource- Throws:
IOException
-
-