wclient
Class Communicator

java.lang.Object
  |
  +--wclient.Communicator

public class Communicator
extends java.lang.Object

This Class is responsible for all the communications setup on the client-side between the client and server.


Constructor Summary
Communicator()
           
Communicator(java.lang.String hostname, int portnum)
           
 
Method Summary
 boolean checkAvailability()
           
 void createConnection()
           
 java.io.ObjectInputStream getInputStream()
           
 java.lang.Object readInformation()
           
 int readIntFromStream()
           
 void writeInformation(java.lang.Object s)
           
 void writeInt(int i)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Communicator

public Communicator(java.lang.String hostname,
                    int portnum)

Communicator

public Communicator()
Method Detail

createConnection

public void createConnection()

checkAvailability

public boolean checkAvailability()

writeInformation

public void writeInformation(java.lang.Object s)
                      throws java.io.IOException
java.io.IOException

getInputStream

public java.io.ObjectInputStream getInputStream()

writeInt

public void writeInt(int i)
              throws java.io.IOException
java.io.IOException

readIntFromStream

public int readIntFromStream()

readInformation

public java.lang.Object readInformation()