public class RepositoryFileInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected RepositoryFile |
file |
protected SimpleRepositoryFileData |
fileData |
protected InputStream |
is |
protected IUnifiedRepository |
repository |
Constructor and Description |
---|
RepositoryFileInputStream(RepositoryFile file) |
RepositoryFileInputStream(RepositoryFile file,
IUnifiedRepository repository) |
RepositoryFileInputStream(Serializable id) |
RepositoryFileInputStream(Serializable id,
IUnifiedRepository repository) |
RepositoryFileInputStream(String path) |
RepositoryFileInputStream(String path,
IUnifiedRepository repository) |
Modifier and Type | Method and Description |
---|---|
RepositoryFile |
getFile() |
String |
getMimeType() |
IUnifiedRepository |
getRepository() |
int |
read() |
void |
setRepository(IUnifiedRepository repository) |
protected void |
setStream() |
available, close, mark, markSupported, read, read, reset, skip
protected InputStream is
protected IUnifiedRepository repository
protected RepositoryFile file
protected SimpleRepositoryFileData fileData
public RepositoryFileInputStream(String path) throws FileNotFoundException
FileNotFoundException
public RepositoryFileInputStream(RepositoryFile file) throws FileNotFoundException
FileNotFoundException
public RepositoryFileInputStream(Serializable id) throws FileNotFoundException
FileNotFoundException
public RepositoryFileInputStream(String path, IUnifiedRepository repository) throws FileNotFoundException
FileNotFoundException
public RepositoryFileInputStream(RepositoryFile file, IUnifiedRepository repository) throws FileNotFoundException
FileNotFoundException
public RepositoryFileInputStream(Serializable id, IUnifiedRepository repository) throws FileNotFoundException
FileNotFoundException
public RepositoryFile getFile()
protected void setStream() throws FileNotFoundException
FileNotFoundException
public int read() throws IOException
read
in class InputStream
IOException
public String getMimeType()
public IUnifiedRepository getRepository()
public void setRepository(IUnifiedRepository repository)
Copyright © 2017 Hitachi Vantara. All rights reserved.