gecco.communication.messages
Class CoffeeBreakMessage
java.lang.Object
gecco.communication.messages.Message
gecco.communication.messages.CoffeeBreakMessage
- public class CoffeeBreakMessage
- extends Message
CoffeeBreakMessage.java
Created: Thu Apr 03 11:25:55 2003
- Author:
Method Summary |
String |
getMessage()
|
static Message |
read(DataInput in)
This factory method reads a message id from the input stream
and calls the read() factory method of the
corresponding subclass, which is responsible for reading the
actual data. |
void |
write(DataOutput out)
This method should write the message to the given
DataOutput . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CoffeeBreakMessage
public CoffeeBreakMessage(String message)
getMessage
public String getMessage()
write
public void write(DataOutput out)
throws IOException
- Description copied from class:
Message
- This method should write the message to the given
DataOutput
.
- Specified by:
write
in class Message
- Parameters:
out
- The output stream.
- Throws:
IOException
read
public static Message read(DataInput in)
throws IOException
- Description copied from class:
Message
- This factory method reads a message id from the input stream
and calls the
read()
factory method of the
corresponding subclass, which is responsible for reading the
actual data.
- Throws:
IOException