|
Project Wonder 5.0 | |||||||||||
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(java.lang.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. |
java.lang.String |
nextElement()
Returns the next token, or null if there is a parse error. |
java.lang.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(java.lang.String line)
line
- the line to parseMethod Detail |
---|
protected void reset()
public boolean hasMoreElements()
hasMoreElements
in interface java.util.Enumeration
public boolean hasMoreTokens()
public java.lang.String nextElement()
nextElement
in interface java.util.Enumeration
public java.lang.String nextToken() throws java.text.ParseException
ParseException
- if there is a parse failure
java.util.NoSuchElementException
- if there are no more tokens to parse
|
Last updated: Tue, Feb 21, 2017 05:45 PM CET | |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |