Package org.pentaho.commons.connection
Class SimpleStreamSource
- java.lang.Object
-
- org.pentaho.commons.connection.SimpleStreamSource
-
- All Implemented Interfaces:
IPentahoStreamSource
public class SimpleStreamSource extends Object implements IPentahoStreamSource
A simple POJO implementation of IPentahoStreamSource- Author:
- jamesdixon
-
-
Constructor Summary
Constructors Constructor Description SimpleStreamSource(String name, String contentType, InputStream inputStream, OutputStream outputStream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContentType()InputStreamgetInputStream()StringgetName()OutputStreamgetOutputStream()
-
-
-
Constructor Detail
-
SimpleStreamSource
public SimpleStreamSource(String name, String contentType, InputStream inputStream, OutputStream outputStream)
-
-
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
-
-