public class StompDecoder extends Object
ByteBuffer. If the buffer does not contain
enough data to form a complete STOMP frame, the buffer is reset and the value
returned is null indicating that no message could be read.| Constructor and Description |
|---|
StompDecoder() |
| Modifier and Type | Method and Description |
|---|---|
Message<byte[]> |
decode(ByteBuffer buffer)
Decodes a STOMP frame in the given
buffer into a Message. |
public Message<byte[]> decode(ByteBuffer buffer)
buffer into a Message.
If the given ByteBuffer contains partial STOMP frame content, the method
resets the buffer and returns null.buffer - The buffer to decode the frame fromnull