kaos.core.csi.util.tcpSupport
Class CommHandler
java.lang.Object
kaos.core.csi.util.tcpSupport.CommHandler
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- ClientCommHandler, ServerRequestHandler
public class CommHandler
- extends java.lang.Object
- implements java.lang.Runnable
Constructor Summary |
CommHandler(java.net.Socket clientSocket)
Constructor |
Method Summary |
protected void |
processBuffer(java.lang.String line,
java.io.BufferedReader bufferedReader)
|
protected void |
processLine(java.lang.String line)
|
protected java.lang.String |
readLine(java.io.BufferedReader bufferedReader)
|
void |
run()
run
While connected, continues to read the object input stream and
adds all objects to the newObjects vector |
void |
start()
Start a thread for the server handler to run in. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_os
protected java.io.PrintStream _os
_clientSocket
protected java.net.Socket _clientSocket
_logger
protected Logger _logger
CommHandler
public CommHandler(java.net.Socket clientSocket)
throws java.lang.Exception
- Constructor
- Parameters:
clientSocket
- the socket for the client handler to read from
- Throws:
java.lang.Exception
start
public void start()
- Start a thread for the server handler to run in.
processBuffer
protected void processBuffer(java.lang.String line,
java.io.BufferedReader bufferedReader)
processLine
protected void processLine(java.lang.String line)
readLine
protected java.lang.String readLine(java.io.BufferedReader bufferedReader)
run
public void run()
- run
While connected, continues to read the object input stream and
adds all objects to the newObjects vector
- Specified by:
run
in interface java.lang.Runnable