public final class MessagePacker extends Object implements Serializable
| Constructor and Description |
|---|
MessagePacker(byte[] o)
Initialize the message packer
|
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getData()
Get the message data
|
String |
pack()
Pack the message
|
static MessagePacker |
unpack(String serialized)
Unpack a packed message
|
public MessagePacker(byte[] o)
o - the messagepublic String pack()
public byte[] getData()
public static MessagePacker unpack(String serialized)
serialized - the serialized packed messageCopyright © 2022. All rights reserved.