java.lang.Object
java.lang.Thread
com.act365.net.echo.EchoWorker
- All Implemented Interfaces:
- java.lang.Runnable
- class EchoWorker
- extends java.lang.Thread
An instance of the EchoWorker is created by the EchoServer
class to handle each new client that is accepted. The EchoWorker
objects will simply echo all input it receives back to the output.
| Nested classes inherited from class java.lang.Thread |
java.lang.Thread.UncaughtExceptionHandler |
|
Method Summary |
void |
run()
The method of Thread that will be run if there is no Runnable object
associated with the Thread. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
in
java.io.InputStream in
out
java.io.OutputStreamWriter out
EchoWorker
public EchoWorker(java.io.InputStream in,
java.io.OutputStream out)
run
public void run()
- Description copied from class:
java.lang.Thread
- The method of Thread that will be run if there is no Runnable object
associated with the Thread. Thread's implementation does nothing at all.