java.lang.Object
org.jempeg.empeg.util.CommandLineTokenizer
- All Implemented Interfaces:
- java.util.Enumeration
- public class CommandLineTokenizer
- extends java.lang.Object
- implements java.util.Enumeration
CommandLineTokenizer is a simple parser for commandline-syntax
arguments (that may have quotes in them for grouping
arguments that have spaces).
- Version:
- $Revision: 1.6 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
myIterator
private java.text.StringCharacterIterator myIterator
myState
private int myState
CommandLineTokenizer
public CommandLineTokenizer(java.lang.String _line)
reset
public void reset()
hasMoreElements
public boolean hasMoreElements()
- Description copied from interface:
java.util.Enumeration
- Tests whether there are elements remaining in the enumeration.
- Specified by:
hasMoreElements in interface java.util.Enumeration
hasMoreTokens
public boolean hasMoreTokens()
nextElement
public java.lang.Object nextElement()
- Description copied from interface:
java.util.Enumeration
- Obtain the next element in the enumeration.
- Specified by:
nextElement in interface java.util.Enumeration
nextToken
public java.lang.String nextToken()
throws java.text.ParseException