comm2j
Class StringMessage

java.lang.Object
  |
  +--comm2j.Message
        |
        +--comm2j.StringMessage
All Implemented Interfaces:
MessageI

public class StringMessage
extends Message

StringMessage is the message class used to send and receive strings to/from remote server.

Version:
1.0
Author:
Luca Bertoncello <lucabert@lucabert.de>
See Also:
Comm2J, String

Fields inherited from class comm2j.Message
className, message, messageHasBeenSet
 
Constructor Summary
StringMessage()
          Constructor.
StringMessage(java.lang.String message)
          Constructor.
 
Method Summary
protected  void setInternalObject(java.lang.Object obj)
          Sets the internal object.
 
Methods inherited from class comm2j.Message
getMessage, getName, isMessageSet, readHeader, readMessage, setMessage, toString, writeHeader, writeMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringMessage

public StringMessage()
Constructor. Initialize the class with null string

StringMessage

public StringMessage(java.lang.String message)
Constructor. Initialize the class with given string
Parameters:
message - Initial string
Method Detail

setInternalObject

protected void setInternalObject(java.lang.Object obj)
Sets the internal object. This function is used by readMessage.
Overrides:
setInternalObject in class Message
Parameters:
obj - Internal object to be set