public class ByteBufferInput extends java.lang.Object implements MessageBufferInput
MessageBufferInput adapter for ByteBuffer| Constructor and Description |
|---|
ByteBufferInput(java.nio.ByteBuffer input) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MessageBuffer |
next()
Get a next buffer to read.
|
java.nio.ByteBuffer |
reset(java.nio.ByteBuffer input)
Reset buffer.
|
public java.nio.ByteBuffer reset(java.nio.ByteBuffer input)
input - new bufferpublic MessageBuffer next()
MessageBufferInputWhen this method is called, the formally allocated buffer can be safely discarded.
next in interface MessageBufferInputpublic void close()
close in interface java.io.Closeableclose in interface java.lang.AutoCloseable