edu.mines.jtk.util
Class StringParser

java.lang.Object
  extended by edu.mines.jtk.util.StringParser

public class StringParser
extends java.lang.Object

Parse a string containing zero or more string literals.

Version:
06/20/1998, 08/24/2006.
Author:
Dave Hale, Colorado School of Mines

Constructor Summary
StringParser(java.lang.String s)
          Construct a string parser for the specified string.
 
Method Summary
 boolean hasMoreStrings()
          Determine whether the parser has more strings.
 java.lang.String nextString()
          Get the next string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringParser

public StringParser(java.lang.String s)
Construct a string parser for the specified string.

Parameters:
s - string to parse.
Method Detail

hasMoreStrings

public boolean hasMoreStrings()
Determine whether the parser has more strings.

Returns:
true, if more strings; false, otherwise.

nextString

public java.lang.String nextString()
Get the next string.

Returns:
next string.
Throws:
java.util.NoSuchElementException - if parser has no more strings.