org.pentaho.platform.repository.content
Class ContentItem.FilePentahoStreamSource

java.lang.Object
  extended by org.pentaho.platform.repository.content.ContentItem.FilePentahoStreamSource
All Implemented Interfaces:
org.pentaho.commons.connection.IPentahoStreamSource
Enclosing class:
ContentItem

public static final class ContentItem.FilePentahoStreamSource
extends Object
implements org.pentaho.commons.connection.IPentahoStreamSource


Constructor Summary
ContentItem.FilePentahoStreamSource(String fp)
           
 
Method Summary
 String getContentType()
           
 InputStream getInputStream()
           
 String getName()
           
 OutputStream getOutputStream()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ContentItem.FilePentahoStreamSource

public ContentItem.FilePentahoStreamSource(String fp)
Method Detail

getInputStream

public InputStream getInputStream()
                           throws IOException
Specified by:
getInputStream in interface org.pentaho.commons.connection.IPentahoStreamSource
Throws:
IOException

getName

public String getName()
Specified by:
getName in interface org.pentaho.commons.connection.IPentahoStreamSource

getOutputStream

public OutputStream getOutputStream()
                             throws IOException
Specified by:
getOutputStream in interface org.pentaho.commons.connection.IPentahoStreamSource
Throws:
IOException

getContentType

public String getContentType()
Specified by:
getContentType in interface org.pentaho.commons.connection.IPentahoStreamSource