Uses of Class
comm2j.Message

Uses of Message in comm2j
 

Subclasses of Message in comm2j
 class ByteMessage
          ByteMessage is the message class used to send and receive bytes to/from remote server.
 class DateMessage
          DateMessage is the message class used to send and receive date to/from remote server.
 class IntegerMessage
          IntegerMessage is the message class used to send and receive integer to/from remote server.
 class LongMessage
          LongMessage is the message class used to send and receive long to/from remote server.
 class ShortMessage
          ShortMessage is the message class used to send and receive short to/from remote server.
 class StringMessage
          StringMessage is the message class used to send and receive strings to/from remote server.
 class VectorMessage
          VectorMessage is the message class used to send and receive vector of messages to/from remote server.
 

Methods in comm2j that return Message
 Message Comm2J.readMessageFromStream()
          Receive a message from the remote host.
 Message Read2J.readMessageFromStream(java.io.InputStream is)
          Receive a message from the remote peer.
It automatically recognises if the communication was compressed or not.
 

Methods in comm2j with parameters of type Message
 void VectorMessage.addMessage(Message message)
          Insert a given message at the end of the vector
 void VectorMessage.insertMessageAt(Message message, int index)
          Insert a given message at the given position of the vector, replacing old message
 int Comm2J.writeMessageToStream(Message msg)
          Send a message to the remote host.
 int Read2J.writeMessageToStream(Message msg, java.io.OutputStream os)
          Sends a message to the remote peer.
If compression mode was set, the stream will be compressed.