net.jackofalltrades.irc.util
Class CommandParser

java.lang.Object
  extended bynet.jackofalltrades.irc.util.CommandParser

public class CommandParser
extends java.lang.Object

Parses IRC commands and CTCP commands.

Since:
0.5-alpha
Version:
$Revision: 1.8 $ $Date: 2003/08/03 21:01:36 $
Author:
Bradley M. Handy

Method Summary
static CtcpCommand parseCtcpCommand(java.lang.String command)
          Parses a string into a CtcpCommand.
static IrcCommand parseIrcCommand(java.lang.String command)
          Parses a string into an IrcCommand object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parseIrcCommand

public static final IrcCommand parseIrcCommand(java.lang.String command)
Parses a string into an IrcCommand object.

Parameters:
command - an IRC command as a String.
Returns:
the command as an IrcCommand object, or null if the command is not of the proper format.

parseCtcpCommand

public static final CtcpCommand parseCtcpCommand(java.lang.String command)
Parses a string into a CtcpCommand.

Parameters:
command - the String command from the server.
Returns:
a CtcpCommand object.


Copyright © 2002-2003 Jack-of-all-trades Programming Services. All Rights Reserved.