public class ProgressInputStream extends InputStream implements ProgressDataHandler
| Constructor and Description |
|---|
ProgressInputStream(InputStream inputStream,
long length,
long pulseTime) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
long |
getIndex() |
ProgressPanel |
getIOProgressPanel() |
long |
getLength() |
void |
mark(int readAheadLimit) |
int |
read() |
int |
read(byte[] buf) |
int |
read(byte[] buf,
int off,
int len) |
void |
reset() |
long |
skip(long n) |
available, markSupportedpublic ProgressInputStream(InputStream inputStream, long length, long pulseTime)
public long getLength()
getLength in interface ProgressDataHandlerpublic long getIndex()
getIndex in interface ProgressDataHandlerpublic ProgressPanel getIOProgressPanel()
public int read()
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] buf,
int off,
int len)
throws IOException
read in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionpublic void mark(int readAheadLimit)
mark in class InputStreampublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionCopyright © 2017. All rights reserved.