com.zerjio.JIRC
Class PARTMessage

java.lang.Object
  extended bycom.zerjio.JIRC.IRCMessage
      extended bycom.zerjio.JIRC.PARTMessage

public class PARTMessage
extends IRCMessage

This class represents a PART message that is send over an IRC Connection.

It is recommended to take a look to the RFC 1459 to know what this message means, its exact format and how to handle it.


Constructor Summary
PARTMessage(java.lang.String prefix, java.lang.String params)
          Constructs a PART message with a prefix and its parameters.
 
Method Summary
 java.lang.String getChannelName()
          Returns the channel that has been joined.
 java.lang.String whoIsParting()
          Returns who is leaving the channel.
 
Methods inherited from class com.zerjio.JIRC.IRCMessage
asString, asStringWithoutPrefix, getCommand, getHost, getMustBeDiscarded, getNick, getParams, getPrefix, getUsedCount, getUser, isUsed, markAsUsed, mustBeDiscarded
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PARTMessage

public PARTMessage(java.lang.String prefix,
                   java.lang.String params)
Constructs a PART message with a prefix and its parameters. The command will be PART.

Parameters:
prefix - The PART message prefix.
params - The PART message parameters.
Method Detail

whoIsParting

public java.lang.String whoIsParting()
Returns who is leaving the channel.

Returns:
The nick who is leaving the channel.

getChannelName

public java.lang.String getChannelName()
Returns the channel that has been joined.

Returns:
The name of the channel that has been joined.