com.ccg.net
Interface Transport

All Known Implementing Classes:
TransportNull, TransportStreams

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);
   }
 }
 

Since:
1.0
Version:
$Revision: 1.3 $
Author:
$Author: pkb $ *see [class][#method]|Text

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

send

void send(Serializable object)
          throws IOException
Method to send a message to other end of transport. Assuming your Transport object is connected to something, you can use this method to send any Serializable object to the other end of the connection.

Parameters:
object - Object to send
Throws:
IOException - If there is a problem sending the object (maybe the underlying transportation system has failed).
Since:
1.0
See Also:
receive()

receive

Object receive()
               throws IOException,
                      ClassNotFoundException,
                      OptionalDataException
Method to receive a message from the other end of transport. Assuming your 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.

Returns:
The object which has been received (or null if nothing received).
Throws:
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.
Since:
1.0
See Also:
send(java.io.Serializable)


Copyright 1998-1998-2006 null. All Rights Reserved.