Methods Summary |
---|
byte[] | getBytes()Gets the raw byte array.
return buffer;
|
public java.lang.String | getPayloadText()Returns the message payload data as a String .
if (buffer == null) {
return null;
}
return TextEncoder.toString(buffer);
|
void | setBytes(byte[] data)Sets the raw byte array.
buffer = data;
|
public void | setPayloadText(java.lang.String data)Sets the payload data of this message. The payload data
may be null .
if (data != null) {
buffer = TextEncoder.toByteArray(data);
} else {
buffer = null;
}
return;
|