public final class LengthMarkedBufferedInputStream extends FilterInputStream
| Constructor and Description |
|---|
LengthMarkedBufferedInputStream(InputStream in)
The Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
int |
available() |
void |
blockForCommand()
Blocks until a complete command has been read in.
|
boolean |
markSupported() |
boolean |
pollForCommand(int max_size)
Checks to see if there is a complete command waiting on the input stream.
|
int |
read() |
int |
read(byte[] b,
int off,
int len) |
public LengthMarkedBufferedInputStream(InputStream in)
public int read()
throws IOException
read in class FilterInputStreamIOExceptionpublic int read(byte[] b,
int off,
int len)
throws IOException
read in class FilterInputStreamIOExceptionpublic int available()
throws IOException
available in class FilterInputStreamIOExceptionpublic boolean markSupported()
markSupported in class FilterInputStreampublic boolean pollForCommand(int max_size)
throws IOException
'max_size' is the maximum number of bytes we are allowing before an IOException is thrown.
IOExceptionpublic void blockForCommand()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.