|
Project Wonder 5.0.0.8795 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecter.extensions.foundation.ERXCommandLineTokenizer
public class ERXCommandLineTokenizer
Tokenizes a string like a commandline parser, tokenizing on spaces unless the words are in double quotes or single quotes.
| Constructor Summary | |
|---|---|
ERXCommandLineTokenizer(String line)
Creates a new ERXCommandLineTokenizer. |
|
| Method Summary | |
|---|---|
boolean |
hasMoreElements()
Returns true if there are more tokens on the line. |
boolean |
hasMoreTokens()
Returns true if there are more tokens on the line. |
String |
nextElement()
Returns the next token, or null if there is a parse error. |
String |
nextToken()
Returns the next token. |
protected void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ERXCommandLineTokenizer(String line)
line - the line to parse| Method Detail |
|---|
protected void reset()
public boolean hasMoreElements()
hasMoreElements in interface Enumerationpublic boolean hasMoreTokens()
public String nextElement()
nextElement in interface Enumeration
public String nextToken()
throws ParseException
ParseException - if there is a parse failure
NoSuchElementException - if there are no more tokens to parse
|
Last updated: Fri, Jan 9, 2009 04:35 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||