public class BlockingInputStream extends InputStream
| Modifier and Type | Field and Description |
|---|---|
protected InputStream |
is |
| Constructor and Description |
|---|
BlockingInputStream(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
close() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bf)
We had to revert to byte per byte reading to keep
with slow network connections on one hand, without
missing the end-of-file.
|
int |
read(byte[] bf,
int s,
int l) |
void |
reset() |
long |
skip(long n) |
protected InputStream is
public BlockingInputStream(InputStream is)
public int available()
throws IOException
available in class InputStreamIOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic 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[] bf)
throws IOException
read in class InputStreamIOExceptionpublic int read(byte[] bf,
int s,
int l)
throws IOException
read in class InputStreamIOExceptionpublic void reset()
throws IOException
reset in class InputStreamIOExceptionpublic long skip(long n)
throws IOException
skip in class InputStreamIOExceptionCopyright © 2014 Open Microscopy Environment