av.util
Class CommandLineParser
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommandLineParser
public CommandLineParser(String cmdln)
CommandLineParser
public CommandLineParser(String cmdln,
String delimiters)
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)
Copyright© 2006 Ableverse Platform. All rights reserved.