Methods Summary |
---|
public byte[] | getPayloadData()Gets the raw byte array.
return buffer;
|
public java.lang.String | getPayloadText()Returns a String representing the message payload data.
if (buffer == null) {
return null;
}
return TextEncoder.toString(buffer);
|
public void | setPayloadData(byte[] data)Sets the raw byte array.
buffer = data;
|
public void | setPayloadText(java.lang.String data)Sets this message's payload data. It may be null .
if (data != null) {
buffer = TextEncoder.toByteArray(data);
} else {
buffer = null;
}
|