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 InputStreamIOExceptionInputStream.available()public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionInputStream.close()public void mark(int readLimit)
mark in class InputStreamInputStream.mark(int)public boolean markSupported()
markSupported in class InputStreamInputStream.markSupported()public int read()
throws IOException
read in class InputStreamIOExceptionInputStream.read()public int read(byte[] bf)
throws IOException
read in class InputStreambf - 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 InputStreamIOExceptionInputStream.read(byte[], int, int)public void reset()
throws IOException
reset in class InputStreamIOExceptionInputStream.reset()public long skip(long n)
throws IOException
skip in class InputStreamIOExceptionInputStream.skip(long)Copyright © 2020 Hyland Software Germany GmbH. All rights reserved.