org.objectweb.jonathan.helpers
Class MessageHelpers
public class MessageHelpers
This class contains some methods to deal with messages (marshallers).
static byte[] | copy(Marshaller message) - Copies the contents of a message into an array of bytes.
|
static int | size(Marshaller message) - Returns the size of a message.
|
copy
public static byte[] copy(Marshaller message)
Copies the contents of a message into an array of bytes.
message
- a marshaller;
- an array of bytes.
size
public static int size(Marshaller message)
Returns the size of a message.
message
- a marshaller;
- its size.