NOS.io
Class CommandParser

java.lang.Object
  extended by NOS.io.CommandParser

public class CommandParser
extends java.lang.Object


Constructor Summary
CommandParser()
           
 
Method Summary
static java.lang.String[] parseCommand(java.lang.String command, java.lang.String groupstart, java.lang.String groupend)
          Parse a command into a list of arguments.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandParser

public CommandParser()
Method Detail

parseCommand

public static java.lang.String[] parseCommand(java.lang.String command,
                                              java.lang.String groupstart,
                                              java.lang.String groupend)
Parse a command into a list of arguments.

Parameters:
command - The command to be parsed
groupstart - A regular expression mathcing the start of a group
groupend - A regular expression mathcing the end of a group
Returns:
A list of arguments parsed from the command.