gecco.communication.messages
Class InvalidMessage

java.lang.Object
  |
  +--gecco.communication.messages.Message
        |
        +--gecco.communication.messages.InvalidMessage

public class InvalidMessage
extends Message

This message is returned by Message.read() when the message id did not match any existing message.

Author:
Karl Hasselström

Constructor Summary
InvalidMessage()
           
 
Method Summary
static Message read(DataInput in)
          This factory method reads a message, without an initial ID, from the input stream.
 void write(DataOutput out)
          This method writes the message to the given DataOutput .
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvalidMessage

public InvalidMessage()
Method Detail

write

public void write(DataOutput out)
This method writes the message to the given DataOutput . Note that this method is not supported.
Overrides:
write in class Message
Parameters:
out - The output stream.

read

public static Message read(DataInput in)
This factory method reads a message, without an initial ID, from the input stream. Note that this method is not supported.
Parameters:
in - The input stream.
Returns:
An instance of Message .