cuba.util
Class ArgReader

java.lang.Object
  extended by cuba.util.ArgReader

public class ArgReader
extends java.lang.Object

This class emulates the good old UNIX command line argument reader functions.

Author:
Jan Lessner

Field Summary
static char ARGEND
           
static char ARGERROR
           
static char COLON
           
static java.lang.String COLON_STRING
           
static java.lang.String DASH_STRING
           
 
Constructor Summary
ArgReader(java.lang.String[] args, java.lang.String argpattern)
           
 
Method Summary
 char getArg()
           
 java.lang.String getArgValue()
           
 java.lang.String[] getPendingArgs()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ARGEND

public static final char ARGEND
See Also:
Constant Field Values

ARGERROR

public static final char ARGERROR
See Also:
Constant Field Values

COLON

public static final char COLON
See Also:
Constant Field Values

COLON_STRING

public static final java.lang.String COLON_STRING
See Also:
Constant Field Values

DASH_STRING

public static final java.lang.String DASH_STRING
See Also:
Constant Field Values
Constructor Detail

ArgReader

public ArgReader(java.lang.String[] args,
                 java.lang.String argpattern)
Method Detail

getArg

public char getArg()
            throws ArgumentException
Throws:
ArgumentException

getArgValue

public java.lang.String getArgValue()

getPendingArgs

public java.lang.String[] getPendingArgs()