org.elite.jdcbot.framework
Class InputThread

java.lang.Object
  extended by org.elite.jdcbot.framework.DCIO
      extended by 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

Field Summary
private  java.io.InputStream _in
           
private  InputThreadTarget _inputThreadTrgt
           
private  boolean running
           
 
Constructor Summary
InputThread(InputThreadTarget inputThreadTrgt, java.io.InputStream in)
          Constructs thread that will read raw commands from hub
 
Method Summary
protected  void onReadingCommand()
           
 void run()
           
 void start()
          Starts the InputThread thread.
 void stop()
           
 
Methods inherited from class org.elite.jdcbot.framework.DCIO
parseCmdArgs, parseCmdName, parseRawCmd, ReadCommand, ReadCommand, SendCommand, SendCommand, set_IOExceptionMsg
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_in

private java.io.InputStream _in

_inputThreadTrgt

private InputThreadTarget _inputThreadTrgt

running

private volatile boolean running
Constructor Detail

InputThread

public InputThread(InputThreadTarget inputThreadTrgt,
                   java.io.InputStream in)
Constructs thread that will read raw commands from hub

Parameters:
inputThreadTrgt - InputThreadTarget instance
in - InputStream class from which we will read.
Method Detail

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()