org.objectweb.dream.serializator
Interface Serializator

All Known Implementing Classes:
SerializatorImpl

public interface Serializator

A serializator defines a method serialize that takes a message as parameter and returns a byte array representation of the message.


Field Summary
static String ITF_NAME
          The default name of the Serializatorinterface.
 
Method Summary
 byte[] serialize(Message message)
          Serializes the given message and returns a byte array representation of the message.
 

Field Detail

ITF_NAME

static final String ITF_NAME
The default name of the Serializatorinterface.

See Also:
Constant Field Values
Method Detail

serialize

byte[] serialize(Message message)
                 throws IOException
Serializes the given message and returns a byte array representation of the message.

Parameters:
message - the message to be serialized.
Returns:
a byte array representation of the message.
Throws:
IOException - if an exception occurs while serializing the message.


Copyright © 2003, 2005 - INRIA Rhone-Alpes - All Rights Reserved.