com.cometway.jdbc
Class ObjectWriterThread

java.lang.Object
  extended by com.cometway.jdbc.ObjectWriterThread
All Implemented Interfaces:
java.lang.Runnable

public class ObjectWriterThread
extends java.lang.Object
implements java.lang.Runnable


Constructor Summary
ObjectWriterThread(java.lang.ThreadGroup tgroup)
           
 
Method Summary
 void connect(java.io.PipedInputStream in)
          connects the PipedOutputStream to a PipedInputStream
 boolean isBusy()
           
 void run()
          Runs this thread without forking.
 void setByteData(java.util.Vector bytesToWrite)
           
 void setByteData(java.util.Vector bytesToWrite, java.io.PipedOutputStream poutStream)
           
 void setData(java.lang.Object objToWrite)
           
 void setData(java.lang.Object objToWrite, java.io.PipedOutputStream poutStream)
           
 void start()
          Forks off this thread and executes it
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectWriterThread

public ObjectWriterThread(java.lang.ThreadGroup tgroup)
Method Detail

setData

public void setData(java.lang.Object objToWrite,
                    java.io.PipedOutputStream poutStream)

setData

public void setData(java.lang.Object objToWrite)

setByteData

public void setByteData(java.util.Vector bytesToWrite,
                        java.io.PipedOutputStream poutStream)

setByteData

public void setByteData(java.util.Vector bytesToWrite)

start

public void start()
Forks off this thread and executes it


connect

public void connect(java.io.PipedInputStream in)
connects the PipedOutputStream to a PipedInputStream


run

public void run()
Runs this thread without forking.

Specified by:
run in interface java.lang.Runnable

isBusy

public boolean isBusy()