f00f.net.irc.martyr.commands
Class RawCommand

java.lang.Object
  |
  +--f00f.net.irc.martyr.commands.RawCommand
All Implemented Interfaces:
Command, OutCommand

public class RawCommand
extends java.lang.Object
implements OutCommand


Constructor Summary
RawCommand(java.lang.String raw)
          Tries to use the first "word" in the command as the identifier.
RawCommand(java.lang.String identifier, java.lang.String parameters)
          The rendered command will be identifier + " " + parameters.
 
Method Summary
 java.lang.String getIrcIdentifier()
          Returns the identifier, if supplied, or null.
 java.lang.String render()
          Simply returns the string given in the constructor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawCommand

public RawCommand(java.lang.String raw)
Tries to use the first "word" in the command as the identifier. Using this constructor is not recommended.

RawCommand

public RawCommand(java.lang.String identifier,
                  java.lang.String parameters)
The rendered command will be identifier + " " + parameters. This constructure simply allows a correct response to the getIrcIdentifier method.
Method Detail

getIrcIdentifier

public java.lang.String getIrcIdentifier()
Returns the identifier, if supplied, or null.
Specified by:
getIrcIdentifier in interface Command

render

public java.lang.String render()
Simply returns the string given in the constructor.
Specified by:
render in interface OutCommand


Copyright © 2000,2001,2002,2003 f00f networks.