Ableverse™
Platform 6.0

av.util
Class CommandLineParser

java.lang.Object
  extended by av.util.CommandLineParser

public class CommandLineParser
extends Object

This class parses a fairly common command line into separated strings, regarding quotes and escape sequences.

Author:
compl

Constructor Summary
CommandLineParser(String cmdln)
           
CommandLineParser(String cmdln, String delimiters)
           
 
Method Summary
protected  boolean fetchNextArg()
           
 boolean getKeepQuote()
           
 boolean hasMoreArgs()
           
protected  boolean isDelimiter(char c)
           
static void main(String[] args)
          test this class.
 String nextArg()
           
static List<String> parseCommandLine(String cmdln)
           
static List<String> parseCommandLine(String cmdln, String delimiters)
           
 void reset()
           
 void setKeepQuote(boolean keepQuote)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineParser

public CommandLineParser(String cmdln)

CommandLineParser

public CommandLineParser(String cmdln,
                         String delimiters)
Method Detail

parseCommandLine

public static List<String> parseCommandLine(String cmdln)

parseCommandLine

public static List<String> parseCommandLine(String cmdln,
                                            String delimiters)

isDelimiter

protected boolean isDelimiter(char c)

fetchNextArg

protected boolean fetchNextArg()

hasMoreArgs

public boolean hasMoreArgs()

nextArg

public String nextArg()

reset

public void reset()

main

public static void main(String[] args)
test this class.

Parameters:
args -

getKeepQuote

public boolean getKeepQuote()

setKeepQuote

public void setKeepQuote(boolean keepQuote)

Ableverse™
Platform 6.0

Copyright© 2006 Ableverse Platform. All rights reserved.