DBAbstract API Documentation

ro.raducora.connection.client.tcp
Class ClientTCP

java.lang.Object
  |
  +--ro.raducora.connection.client.tcp.ClientTCP

public class ClientTCP
extends java.lang.Object

Author:
Radu Coravu
Created on 06.06.2004
This is a ClientTCP abstraction which communicates by streams.

Constructor Summary
ClientTCP(java.io.ObjectInputStream input, java.io.ObjectOutputStream output, boolean gunzipInput)
          Set ObjectInputStream and ObjectOutputStream
 
Method Summary
 void closeConnection()
          Close object streams
 java.lang.Object getObject()
          Get an object from ObjectInputStream
 void sendObject(java.lang.Object sent)
          Send an object to server
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientTCP

public ClientTCP(java.io.ObjectInputStream input,
                 java.io.ObjectOutputStream output,
                 boolean gunzipInput)
Set ObjectInputStream and ObjectOutputStream

Parameters:
input - the Object Input Stream
output - the Object Output Stream
Method Detail

getObject

public java.lang.Object getObject()
                           throws java.io.IOException,
                                  java.lang.ClassNotFoundException,
                                  RemoteException
Get an object from ObjectInputStream

Returns:
the read object
Throws:
java.io.IOException
java.lang.ClassNotFoundException
RemoteException

sendObject

public void sendObject(java.lang.Object sent)
                throws java.io.IOException
Send an object to server

Parameters:
sent - the object to send
Throws:
java.io.IOException

closeConnection

public void closeConnection()
Close object streams


DBAbstract API Documentation

© Copyright Radu Coravu 2002 - 2004.