public class ProgressInputStream
extends InputStream
| Constructor and Description |
|---|
ProgressInputStream(javax.portlet.PortletRequest portletRequest,
InputStream inputStream,
long totalSize,
String progressId) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
clearProgress() |
void |
close() |
long |
getTotalRead() |
void |
initProgress() |
void |
mark(int readlimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] b) |
int |
read(byte[] b,
int off,
int len) |
void |
readAll(OutputStream outputStream) |
void |
reset() |
long |
skip(long n) |
public ProgressInputStream(javax.portlet.PortletRequest portletRequest,
InputStream inputStream,
long totalSize,
String progressId)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void clearProgress()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic long getTotalRead()
public void initProgress()
public void mark(int readlimit)
mark in class InputStreampublic boolean markSupported()
markSupported in class InputStreampublic int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic void readAll(OutputStream outputStream)
throws IOException
IOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOException