org.objectweb.jonathan.helpers

Class MessageHelpers


public class MessageHelpers
extends Object

This class contains some methods to deal with messages (marshallers).

Method Summary

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.

Method Details

copy

public static byte[] copy(Marshaller message)
Copies the contents of a message into an array of bytes.

Parameters:
message - a marshaller;

Returns:
an array of bytes.


size

public static int size(Marshaller message)
Returns the size of a message.

Parameters:
message - a marshaller;

Returns:
its size.