java.io.Closeable, java.lang.AutoCloseablepublic final class LengthMarkedBufferedInputStream
extends java.io.FilterInputStream
| Constructor | Description |
|---|---|
LengthMarkedBufferedInputStream(java.io.InputStream in) |
The Constructor.
|
| Modifier and Type | Method | 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(java.io.InputStream in)
public int read()
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.FilterInputStreamjava.io.IOExceptionpublic int available()
throws java.io.IOException
available in class java.io.FilterInputStreamjava.io.IOExceptionpublic boolean markSupported()
markSupported in class java.io.FilterInputStreampublic boolean pollForCommand(int max_size)
throws java.io.IOException
'max_size' is the maximum number of bytes we are allowing before an IOException is thrown.
java.io.IOExceptionpublic void blockForCommand()
throws java.io.IOException
java.io.IOExceptionCopyright © 2018. All rights reserved.