public class InputStreamBufferInput extends java.lang.Object implements MessageBufferInput
MessageBufferInput adapter for InputStream| Constructor and Description |
|---|
InputStreamBufferInput(java.io.InputStream in) |
InputStreamBufferInput(java.io.InputStream in,
int bufferSize) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
static MessageBufferInput |
newBufferInput(java.io.InputStream in) |
MessageBuffer |
next()
Get a next buffer to read.
|
java.io.InputStream |
reset(java.io.InputStream in)
Reset Stream.
|
public InputStreamBufferInput(java.io.InputStream in)
public InputStreamBufferInput(java.io.InputStream in,
int bufferSize)
public static MessageBufferInput newBufferInput(java.io.InputStream in)
public java.io.InputStream reset(java.io.InputStream in)
throws java.io.IOException
in - new streamjava.io.IOExceptionpublic MessageBuffer next() throws java.io.IOException
MessageBufferInputWhen this method is called, the formally allocated buffer can be safely discarded.
next in interface MessageBufferInputjava.io.IOException - when error occurred when reading the datapublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException