cds.util
Class OptionList

java.lang.Object
  extended bycds.util.OptionList

class OptionList
extends java.lang.Object


Field Summary
(package private)  int iopt
           
(package private)  boolean[] options
           
(package private)  java.lang.StringBuffer optlist
           
 
Constructor Summary
(package private) OptionList()
           
 
Method Summary
(package private)  void add(char c)
           
(package private)  boolean hasNext()
           
private  char intToOpt(int i)
          Translates an option index code into the corresponding character
(package private)  boolean isOption(char c)
           
(package private)  char next()
           
private  int optToInt(char c)
          Converts a option character into its index
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

optlist

java.lang.StringBuffer optlist

options

boolean[] options

iopt

int iopt
Constructor Detail

OptionList

OptionList()
Method Detail

add

void add(char c)

hasNext

final boolean hasNext()

next

final char next()

isOption

final boolean isOption(char c)

optToInt

private int optToInt(char c)
Converts a option character into its index

Parameters:
c - option char to convert (a-zA-Z0-9)
Returns:
the index value (0-61)

intToOpt

private char intToOpt(int i)
Translates an option index code into the corresponding character

Parameters:
i - index code
Returns:
the character