|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--comm2j.Message
|
+--comm2j.VectorMessage
VectorMessage is the message class used to send and receive vector of messages
to/from remote server.
Comm2J,
Vector| Fields inherited from class comm2j.Message |
className, message, messageHasBeenSet |
| Constructor Summary | |
VectorMessage()
Constructor. |
|
VectorMessage(java.util.Vector message)
Constructor. |
|
| Method Summary | |
void |
addMessage(Message message)
Insert a given message at the end of the vector |
java.util.Enumeration |
elements()
Returns an enumeration of the messages of this vector. |
void |
insertMessageAt(Message message,
int index)
Insert a given message at the given position of the vector, replacing old message |
int |
readMessage(java.io.InputStream is)
Reads a message from give InputStream. |
protected void |
setInternalObject(java.lang.Object obj)
Sets the internal object. |
int |
size()
Returns the number of messages in this vector |
int |
writeMessage(java.io.OutputStream os)
Send current message throw given OutputStream |
| Methods inherited from class comm2j.Message |
getMessage, getName, isMessageSet, readHeader, setMessage, toString, writeHeader |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public VectorMessage()
public VectorMessage(java.util.Vector message)
message - Initial vector| Method Detail |
public void addMessage(Message message)
message - Given message to be inserted
public void insertMessageAt(Message message,
int index)
throws java.lang.ArrayIndexOutOfBoundsException
message - Given message to be insertedindex - Position of the messagejava.lang.ArrayIndexOutOfBoundsException - if the index was invalidpublic java.util.Enumeration elements()
public int size()
public int readMessage(java.io.InputStream is)
throws java.io.IOException
readMessage in class Messageis - The InputStream used to read datajava.io.IOException - if an error occoured
public int writeMessage(java.io.OutputStream os)
throws java.io.IOException
writeMessage in class Messageos - The OutputStream used to read datajava.io.IOException - if an error occouredprotected void setInternalObject(java.lang.Object obj)
setInternalObject in class Messageobj - Internal object to be set
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||