stella.telescope
Class OpenPilarSocket.TplHandler
java.lang.Object
java.lang.Thread
stella.telescope.OpenPilarSocket.TplHandler
- All Implemented Interfaces:
- Runnable
- Enclosing class:
- OpenPilarSocket
private class OpenPilarSocket.TplHandler
- extends Thread
A thread that permanently moitors the incoming stream for replies sent by
the socket.
|
Method Summary |
void |
run()
Runs the listener thread. |
| Methods inherited from class java.lang.Thread |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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 |
input
private BufferedReader input
- The input stream to monitor.
listener
private TplListener listener
- The tpl-event listener the parsed replies are delivered to.
OpenPilarSocket.TplHandler
protected OpenPilarSocket.TplHandler(BufferedReader line,
TplListener pilar)
- Constructs and starts a new listener thread. Any available data is
parsed into a
TplEvent and sent to the single listener.
run
public void run()
- Runs the listener thread. We wait for input until data is available
and then parse it.
- Specified by:
run in interface Runnable- Overrides:
run in class Thread