uk.org.ownage.dmdirc.parser
Class ProcessMOTD

java.lang.Object
  extended by uk.org.ownage.dmdirc.parser.IRCProcessor
      extended by uk.org.ownage.dmdirc.parser.ProcessMOTD

public class ProcessMOTD
extends IRCProcessor

Process a MOTD Related Line


Field Summary
 
Fields inherited from class uk.org.ownage.dmdirc.parser.IRCProcessor
myManager, myParser
 
Constructor Summary
protected ProcessMOTD(IRCParser parser, ProcessingManager manager)
          Create a new instance of the IRCProcessor Object
 
Method Summary
protected  boolean callMOTDEnd(boolean noMOTD)
          Callback to all objects implementing the MOTDEnd Callback.
protected  boolean callMOTDLine(java.lang.String data)
          Callback to all objects implementing the MOTDLine Callback.
protected  boolean callMOTDStart(java.lang.String data)
          Callback to all objects implementing the MOTDStart
 java.lang.String[] handles()
          What does this IRCProcessor handle.
 void process(java.lang.String sParam, java.lang.String[] token)
          Process a MOTD Related Line.
 
Methods inherited from class uk.org.ownage.dmdirc.parser.IRCProcessor
callDebugInfo, callDebugInfo, callErrorInfo, getCallbackManager, getChannelInfo, getClientInfo, getLowerName, getName, getSvnInfo, isValidChannelName, sendString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ProcessMOTD

protected ProcessMOTD(IRCParser parser,
                      ProcessingManager manager)
Create a new instance of the IRCProcessor Object

Parameters:
parser - IRCParser That owns this IRCProcessor
manager - ProcessingManager that is in charge of this IRCProcessor
Method Detail

process

public void process(java.lang.String sParam,
                    java.lang.String[] token)
Process a MOTD Related Line.

Specified by:
process in class IRCProcessor
Parameters:
sParam - Type of line to process ("375", "372", "376", "422")
token - IRCTokenised line to process

callMOTDEnd

protected boolean callMOTDEnd(boolean noMOTD)
Callback to all objects implementing the MOTDEnd Callback.

Parameters:
noMOTD - Was this an MOTDEnd or NoMOTD
See Also:
IMOTDEnd

callMOTDLine

protected boolean callMOTDLine(java.lang.String data)
Callback to all objects implementing the MOTDLine Callback.

Parameters:
data - Incomming Line.
See Also:
IMOTDLine

callMOTDStart

protected boolean callMOTDStart(java.lang.String data)
Callback to all objects implementing the MOTDStart

Parameters:
data - Incomming Line.
See Also:
IMOTDStart

handles

public java.lang.String[] handles()
What does this IRCProcessor handle.

Specified by:
handles in class IRCProcessor
Returns:
String[] with the names of the tokens we handle.