public class StompEncoder
extends java.lang.Object
StompDecoder
Constructor and Description |
---|
StompEncoder() |
Modifier and Type | Method and Description |
---|---|
byte[] |
encode(java.util.Map<java.lang.String,java.lang.Object> headers,
byte[] payload)
Encodes the given payload and headers into a
byte[] . |
byte[] |
encode(Message<byte[]> message)
Encodes the given STOMP
message into a byte[] |
public byte[] encode(Message<byte[]> message)
message
into a byte[]
message
- the message to encodepublic byte[] encode(java.util.Map<java.lang.String,java.lang.Object> headers, byte[] payload)
byte[]
.headers
- the headerspayload
- the payload