com.zerjio.JIRC
Class SimpleMsgListener

java.lang.Object
  extended bycom.zerjio.JIRC.SimpleMsgListener
All Implemented Interfaces:
MsgListener

public class SimpleMsgListener
extends java.lang.Object
implements MsgListener

A very basic MsgListener that only prints every IRC message that it receives.


Constructor Summary
SimpleMsgListener()
          Constructs a SimpleMsgListener that will print the IRC messages as they are, including their prefix.
SimpleMsgListener(boolean removePrefixes)
          Constructs a SimpleMsgListener that will print the IRC messages with or without printing the prefix (depending on the parameters).
 
Method Summary
 void msgReceived(IRCMessage msg)
          Just prints out the IRCMessage received.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleMsgListener

public SimpleMsgListener()
Constructs a SimpleMsgListener that will print the IRC messages as they are, including their prefix.


SimpleMsgListener

public SimpleMsgListener(boolean removePrefixes)
Constructs a SimpleMsgListener that will print the IRC messages with or without printing the prefix (depending on the parameters).

Parameters:
removePrefixes - true if prefixes must not be printed. false if prefixes must be printed.
Method Detail

msgReceived

public void msgReceived(IRCMessage msg)
Just prints out the IRCMessage received. It marks the message as used, but it not will be removed (and so next listener will catch it).

Specified by:
msgReceived in interface MsgListener
Parameters:
msg - The IRCMessage that has been received.
See Also:
markAsUsed, mustBeDiscarded