Class RepositoryFileInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.pentaho.platform.repository2.unified.fileio.RepositoryFileInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class RepositoryFileInputStream extends InputStream
-
-
Field Summary
Fields Modifier and Type Field Description protected org.pentaho.platform.api.repository2.unified.RepositoryFile
file
protected org.pentaho.platform.api.repository2.unified.data.simple.SimpleRepositoryFileData
fileData
protected InputStream
is
protected org.pentaho.platform.api.repository2.unified.IUnifiedRepository
repository
-
Constructor Summary
Constructors Constructor Description RepositoryFileInputStream(Serializable id)
RepositoryFileInputStream(Serializable id, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
RepositoryFileInputStream(String path)
RepositoryFileInputStream(String path, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
RepositoryFileInputStream(org.pentaho.platform.api.repository2.unified.RepositoryFile file)
RepositoryFileInputStream(org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.pentaho.platform.api.repository2.unified.RepositoryFile
getFile()
String
getMimeType()
org.pentaho.platform.api.repository2.unified.IUnifiedRepository
getRepository()
int
read()
void
setRepository(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
protected void
setStream()
-
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Field Detail
-
is
protected InputStream is
-
repository
protected org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository
-
file
protected org.pentaho.platform.api.repository2.unified.RepositoryFile file
-
fileData
protected org.pentaho.platform.api.repository2.unified.data.simple.SimpleRepositoryFileData fileData
-
-
Constructor Detail
-
RepositoryFileInputStream
public RepositoryFileInputStream(String path) throws FileNotFoundException
- Throws:
FileNotFoundException
-
RepositoryFileInputStream
public RepositoryFileInputStream(org.pentaho.platform.api.repository2.unified.RepositoryFile file) throws FileNotFoundException
- Throws:
FileNotFoundException
-
RepositoryFileInputStream
public RepositoryFileInputStream(Serializable id) throws FileNotFoundException
- Throws:
FileNotFoundException
-
RepositoryFileInputStream
public RepositoryFileInputStream(String path, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository) throws FileNotFoundException
- Throws:
FileNotFoundException
-
RepositoryFileInputStream
public RepositoryFileInputStream(org.pentaho.platform.api.repository2.unified.RepositoryFile file, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository) throws FileNotFoundException
- Throws:
FileNotFoundException
-
RepositoryFileInputStream
public RepositoryFileInputStream(Serializable id, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository) throws FileNotFoundException
- Throws:
FileNotFoundException
-
-
Method Detail
-
getFile
public org.pentaho.platform.api.repository2.unified.RepositoryFile getFile()
-
setStream
protected void setStream() throws FileNotFoundException
- Throws:
FileNotFoundException
-
read
public int read() throws IOException
- Specified by:
read
in classInputStream
- Throws:
IOException
-
getMimeType
public String getMimeType()
-
getRepository
public org.pentaho.platform.api.repository2.unified.IUnifiedRepository getRepository()
-
setRepository
public void setRepository(org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository)
-
-