|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.zerjio.JIRC.SimpleMsgListener
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 |
public SimpleMsgListener()
SimpleMsgListener
that will print the IRC messages
as they are, including their prefix.
public SimpleMsgListener(boolean removePrefixes)
SimpleMsgListener
that will print the IRC messages
with or without printing the prefix (depending on the parameters).
removePrefixes
- true
if prefixes must not be printed.
false
if prefixes must be printed.Method Detail |
public void msgReceived(IRCMessage msg)
IRCMessage
received. It marks the message as used,
but it not will be removed (and so next listener will catch it).
msgReceived
in interface MsgListener
msg
- The IRCMessage
that has been received.markAsUsed
,
mustBeDiscarded
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |