public class BlockingInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
protected InputStream |
is
The stream.
|
Constructor and Description |
---|
BlockingInputStream(InputStream is)
Instantiates a new blocking input stream.
|
Modifier and Type | Method and Description |
---|---|
int |
available() |
void |
close() |
void |
mark(int readLimit) |
boolean |
markSupported() |
int |
read() |
int |
read(byte[] bf)
Blocking Read.
|
int |
read(byte[] bf,
int s,
int l) |
void |
reset() |
long |
skip(long n) |
protected InputStream is
public BlockingInputStream(InputStream is)
is
- the ispublic int available() throws IOException
available
in class InputStream
IOException
InputStream.available()
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class InputStream
IOException
InputStream.close()
public void mark(int readLimit)
mark
in class InputStream
InputStream.mark(int)
public boolean markSupported()
markSupported
in class InputStream
InputStream.markSupported()
public int read() throws IOException
read
in class InputStream
IOException
InputStream.read()
public int read(byte[] bf) throws IOException
read
in class InputStream
bf
- the buffer to fillIOException
- Signals that an I/O exception has occurred.InputStream.read(byte[])
public int read(byte[] bf, int s, int l) throws IOException
read
in class InputStream
IOException
InputStream.read(byte[], int, int)
public void reset() throws IOException
reset
in class InputStream
IOException
InputStream.reset()
public long skip(long n) throws IOException
skip
in class InputStream
IOException
InputStream.skip(long)
Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.