Class RepositoryFileContentItem
- java.lang.Object
-
- org.pentaho.platform.repository2.unified.fileio.RepositoryFileContentItem
-
- All Implemented Interfaces:
org.pentaho.platform.api.engine.IMimeTypeListener
,org.pentaho.platform.api.repository.IContentItem
public class RepositoryFileContentItem extends Object implements org.pentaho.platform.api.repository.IContentItem
-
-
Constructor Summary
Constructors Constructor Description RepositoryFileContentItem(String filePath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeOutputStream()
org.pentaho.commons.connection.IPentahoStreamSource
getDataSource()
InputStream
getInputStream()
String
getMimeType()
OutputStream
getOutputStream(String arg0)
String
getPath()
void
setMimeType(String mimeType)
void
setName(String arg0)
-
-
-
Constructor Detail
-
RepositoryFileContentItem
public RepositoryFileContentItem(String filePath)
-
-
Method Detail
-
closeOutputStream
public void closeOutputStream()
- Specified by:
closeOutputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getDataSource
public org.pentaho.commons.connection.IPentahoStreamSource getDataSource()
- Specified by:
getDataSource
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getInputStream
public InputStream getInputStream() throws org.pentaho.platform.api.repository.ContentException
- Specified by:
getInputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Throws:
org.pentaho.platform.api.repository.ContentException
-
getMimeType
public String getMimeType()
- Specified by:
getMimeType
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
getOutputStream
public OutputStream getOutputStream(String arg0) throws IOException
- Specified by:
getOutputStream
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Throws:
IOException
-
getPath
public String getPath()
- Specified by:
getPath
in interfaceorg.pentaho.platform.api.repository.IContentItem
-
setMimeType
public void setMimeType(String mimeType)
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.repository.IContentItem
- Specified by:
setMimeType
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
setName
public void setName(String arg0)
- Specified by:
setName
in interfaceorg.pentaho.platform.api.engine.IMimeTypeListener
-
-