A Thread which reads lines from the IRC server. It then
passes these lines to the PircBot without changing them.
This running Thread also detects disconnection from the server
and is thus used by the OutputThread to send lines to the server.
Sends a raw line to the IRC server as soon as possible, bypassing the
outgoing message queue.
Parameters:
line - The raw line to send to the IRC server.
isConnected
public boolean isConnected()
Returns true if this InputThread is connected to an IRC server.
The result of this method should only act as a rough guide,
as the result may not be valid by the time you act upon it.
Returns:
True if still connected.
run
public void run()
Called to start this Thread reading lines from the IRC server.
When a line is read, this method calls the handleLine method
in the PircBot, which may subsequently call an 'onXxx' method
in the PircBot subclass. If any subclass of Throwable (i.e.
any Exception or Error) is thrown by your method, then this
method will print the stack trace to the standard output. It
is probable that the PircBot may still be functioning normally
after such a problem, but the existance of any uncaught exceptions
in your code is something you should really fix.