org.objectweb.jonathan.helpers
Class MessageHelpers

java.lang.Object
  extended byorg.objectweb.jonathan.helpers.MessageHelpers

public class MessageHelpers
extends Object

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


Constructor Summary
MessageHelpers()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageHelpers

public MessageHelpers()
Method Detail

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.