Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jempeg.empeg.util
Class CommandLineTokenizer  view CommandLineTokenizer download CommandLineTokenizer.java

java.lang.Object
  extended byorg.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 $

Field Summary
private  java.text.StringCharacterIterator myIterator
           
private  int myState
           
 
Constructor Summary
CommandLineTokenizer(java.lang.String _line)
           
 
Method Summary
 boolean hasMoreElements()
          Tests whether there are elements remaining in the enumeration.
 boolean hasMoreTokens()
           
 java.lang.Object nextElement()
          Obtain the next element in the enumeration.
 java.lang.String nextToken()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myIterator

private java.text.StringCharacterIterator myIterator

myState

private int myState
Constructor Detail

CommandLineTokenizer

public CommandLineTokenizer(java.lang.String _line)
Method Detail

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