org.elite.jdcbot.framework
Class InputThread
java.lang.Object
org.elite.jdcbot.framework.DCIO
org.elite.jdcbot.framework.InputThread
- All Implemented Interfaces:
- java.lang.Runnable
- Direct Known Subclasses:
- TimeoutInputThread
public class InputThread
- extends DCIO
- implements java.lang.Runnable
Threads that reads raw commands from hub and passes them to jDCBot.
- Since:
- 0.5
- Version:
- 0.7
- Author:
- Kokanovic Branko, AppleGrew
Constructor Summary |
InputThread(InputThreadTarget inputThreadTrgt,
java.io.InputStream in)
Constructs thread that will read raw commands from hub |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_in
private java.io.InputStream _in
_inputThreadTrgt
private InputThreadTarget _inputThreadTrgt
running
private volatile boolean running
InputThread
public InputThread(InputThreadTarget inputThreadTrgt,
java.io.InputStream in)
- Constructs thread that will read raw commands from hub
- Parameters:
inputThreadTrgt
- InputThreadTarget instancein
- InputStream class from which we will read.
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
onReadingCommand
protected void onReadingCommand()
start
public void start()
- Starts the InputThread thread.
stop
public void stop()