public class ArrayBufferInput extends java.lang.Object implements MessageBufferInput
| Constructor and Description |
|---|
ArrayBufferInput(byte[] arr) |
ArrayBufferInput(byte[] arr,
int offset,
int length) |
ArrayBufferInput(MessageBuffer buf) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
MessageBuffer |
next()
Get a next buffer to read.
|
void |
reset(byte[] arr) |
void |
reset(byte[] arr,
int offset,
int len) |
MessageBuffer |
reset(MessageBuffer buf)
Reset buffer.
|
public ArrayBufferInput(MessageBuffer buf)
public ArrayBufferInput(byte[] arr)
public ArrayBufferInput(byte[] arr,
int offset,
int length)
public MessageBuffer reset(MessageBuffer buf)
buf - new buffer. This can be null to make this input empty.public void reset(byte[] arr)
public void reset(byte[] arr,
int offset,
int len)
public 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