comm2j
Class ByteMessage

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

public class ByteMessage
extends Message

ByteMessage is the message class used to send and receive bytes to/from remote server.

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

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

ByteMessage

public ByteMessage()
Constructor. Initialize the class with null byte message

ByteMessage

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