autohit.common
Class CommandLine

java.lang.Object
  extended byautohit.common.CommandLine

public class CommandLine
extends java.lang.Object

Manage a command line. It will return sections with calls to get(). Each section is delimited with whitespace, though a full string of tokens can be batched into a section using quotes. Quotes embedded in tokens are ignored. Unterminated quotes will just take the rest of the line as the section. EXAMPLE token1token2"token 3 token 3"token4

Version:
1.0 Version History EPG - Rewrite - 3Aug03
Author:
Erich P. Gatejen

Constructor Summary
CommandLine()
           
 
Method Summary
 java.lang.String get()
          Get the next section.
 void start(java.lang.String command)
          Start on a command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLine

public CommandLine()
Method Detail

start

public void start(java.lang.String command)
Start on a command line.

Parameters:
command - the command line to process

get

public java.lang.String get()
Get the next section. It will return null if there is nothing left (or it is not start()'ed.)

Returns:
the next section or null


Test.