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 InputStream
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
public void mark(int readLimit)
mark
in class InputStream
public boolean markSupported()
markSupported
in class InputStream
public int read() throws IOException
read
in class InputStream
IOException
public int read(byte[] bf) throws IOException
read
in class InputStream
IOException
public int read(byte[] bf, int s, int l) throws IOException
read
in class InputStream
IOException
public void reset() throws IOException
reset
in class InputStream
IOException
public long skip(long n) throws IOException
skip
in class InputStream
IOException
Copyright © 2016 Open Microscopy Environment