|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Transport
Not ready for prime time - please ignore for now.
class Example {
public void main(String[] args) {
com.ccg.net.Transport o = new com.ccg.net.Transport();
System.out.println(o);
}
}
| Method Summary | |
|---|---|
Object |
receive()
Method to receive a message from the other end of transport. |
void |
send(Serializable object)
Method to send a message to other end of transport. |
| Method Detail |
|---|
void send(Serializable object)
throws IOException
Transport object is connected to
something, you can use this method to send any Serializable object to the other end of the
connection.
object - Object to send
IOException - If there is a problem sending the object (maybe the underlying
transportation system has failed).receive()
Object receive()
throws IOException,
ClassNotFoundException,
OptionalDataException
Transport object is connected to
something, you can use this method to read the next Serializable object which the other end of
the connection has sent to you.
IOException - If there is a problem reading/receiving the object (maybe the
underlying transportation system has failed).
OptionalDataException - Problem reading optional data associated with object being
received? (Not sure about this one).
ClassNotFoundException - If the sender sent us a object which we don't have the class
definition for.send(java.io.Serializable)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||