org.objectweb.jonathan.helpers
Class MessageHelpers
java.lang.Object
org.objectweb.jonathan.helpers.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageHelpers
public MessageHelpers()
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.