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 FilterInputStream
IOException
public int read(byte[] b, int off, int len) throws IOException
read
in class FilterInputStream
IOException
public int available() throws IOException
available
in class FilterInputStream
IOException
public boolean markSupported()
markSupported
in class FilterInputStream
public boolean pollForCommand(int max_size) throws IOException
'max_size' is the maximum number of bytes we are allowing before an IOException is thrown.
IOException
public void blockForCommand() throws IOException
IOException
Copyright © 2015. All rights reserved.