org.eclipse.ecf.docshare.messages
Class Message

java.lang.Object
  extended by org.eclipse.ecf.docshare.messages.Message
All Implemented Interfaces:
java.io.Serializable, org.eclipse.core.runtime.IAdaptable, IModelChangeMessage
Direct Known Subclasses:
SelectionMessage, StartMessage, StopMessage

public class Message
extends java.lang.Object
implements IModelChangeMessage, java.io.Serializable

Since:
2.1
See Also:
Serialized Form

Constructor Summary
Message()
           
 
Method Summary
static IModelChangeMessage deserialize(byte[] bytes)
          Deserialize in to message
 java.lang.Object getAdapter(java.lang.Class adapter)
           
 byte[] serialize()
          Serialize this message to byte [].
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Message

public Message()
Method Detail

deserialize

public static IModelChangeMessage deserialize(byte[] bytes)
                                       throws SerializationException
Deserialize in to message

Parameters:
bytes -
Returns:
IModelChangeMessage
Throws:
SerializationException

serialize

public byte[] serialize()
                 throws SerializationException
Description copied from interface: IModelChangeMessage
Serialize this message to byte [].

Specified by:
serialize in interface IModelChangeMessage
Returns:
byte [] that is serialized representation of this model change message.
Throws:
SerializationException - if this model change message cannot be serialized.

getAdapter

public java.lang.Object getAdapter(java.lang.Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable