java.io.Closeable
, java.lang.AutoCloseable
public 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.FilterInputStream
java.io.IOException
public int read(byte[] b, int off, int len) throws java.io.IOException
read
in class java.io.FilterInputStream
java.io.IOException
public int available() throws java.io.IOException
available
in class java.io.FilterInputStream
java.io.IOException
public boolean markSupported()
markSupported
in class java.io.FilterInputStream
public 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.IOException
public void blockForCommand() throws java.io.IOException
java.io.IOException
Copyright © 2018. All rights reserved.