public interface ProtocolMessage
Modifier and Type | Method and Description |
---|---|
void |
get(ByteBuffer buffer)
Read this message from a buffer.
|
void |
put(ByteBuffer buffer)
Write this message to a buffer.
|
void get(ByteBuffer buffer)
buffer
- a bufferBufferUnderflowException
- if there are fewer bytes remaining
in the buffer than what this message consists ofvoid put(ByteBuffer buffer)
buffer
- a bufferBufferOverflowException
- if there are fewer bytes remaining
in the buffer than what this message consists ofReadOnlyBufferException
- if the buffer is read-onlyCopyright © 2017. All rights reserved.