|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjunitutils.Utils.QuoteTokenizer
An enumerator that parses a string into tokens, according to the rules a command-line would use. White space separates tokens, with double-quoted and single-quoted strings recognized.
| Field Summary | |
private char[] |
cc
A char array representation of the String being tokenized |
private int |
pos
The position in the char array |
private java.lang.String |
ss
The String being tokenized |
| Constructor Summary | |
Utils.QuoteTokenizer(java.lang.String s)
Initializes the tokenizer with the given String |
|
| Method Summary | |
boolean |
hasMoreTokens()
|
java.lang.String |
nextToken()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private final java.lang.String ss
private final char[] cc
private int pos
| Constructor Detail |
public Utils.QuoteTokenizer(java.lang.String s)
s - the String to be tokenized| Method Detail |
public boolean hasMoreTokens()
public java.lang.String nextToken()
|
ESC/Java2 © 2003,2004,2005,2006 David Cok and Joseph Kiniry © 2005,2006 UCD Dublin © 2003,2004 Radboud University Nijmegen © 1999,2000 Compaq Computer Corporation © 1997,1998,1999 Digital Equipment Corporation All Rights Reserved |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||