|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectks.common.network.CommunicationAgent
Maintains Input and Output streams, and knows how to writeObject to the Output and readObject from Input, on demand.
Constructor Summary | |
CommunicationAgent(java.io.InputStream in,
java.io.OutputStream out)
Agent to manage communication where writing an object to OutputStream while reading from InputStream. |
Method Summary | |
void |
close()
Shutdown communication agent. |
java.lang.Object |
readObject()
Blocks for an object to be read. |
boolean |
writeObject(java.lang.Object o)
Writes an object to the OutputStream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CommunicationAgent(java.io.InputStream in, java.io.OutputStream out)
in
- out
- Method Detail |
public void close()
public java.lang.Object readObject()
readObject
in interface ICommunicator
public boolean writeObject(java.lang.Object o)
writeObject
in interface ICommunicator
o
- Object to be written.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |