comm2j
Class IntegerMessage

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

public class IntegerMessage
extends Message

IntegerMessage is the message class used to send and receive integer to/from remote server.

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

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

IntegerMessage

public IntegerMessage()
Constructor. Initialize the class with null integer

IntegerMessage

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