comm2j
Class ShortMessage

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

public class ShortMessage
extends Message

ShortMessage is the message class used to send and receive short to/from remote server.

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

Fields inherited from class comm2j.Message
className, message, messageHasBeenSet
 
Constructor Summary
ShortMessage()
          Constructor.
ShortMessage(java.lang.Short 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

ShortMessage

public ShortMessage()
Constructor. Initialize the class with null short

ShortMessage

public ShortMessage(java.lang.Short message)
Constructor. Initialize the class with given short
Parameters:
message - Initial short
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