Package org.openas2.util
Class CommandTokenizer
- java.lang.Object
-
- org.openas2.util.CommandTokenizer
-
public class CommandTokenizer extends java.lang.Object
emulates StringTokenizer
-
-
Field Summary
Fields Modifier and Type Field Description (package private) int
len
(package private) int
pos
(package private) java.lang.String
workString
-
Constructor Summary
Constructors Constructor Description CommandTokenizer(java.lang.String inString)
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreTokens()
any more tokens in Stringjava.lang.String
nextToken()
returns the next token, this handles spaces and quotes
-
-
-
Method Detail
-
hasMoreTokens
public boolean hasMoreTokens() throws WrappedException
any more tokens in String- Returns:
- true if there are any more tokens
- Throws:
WrappedException
- - internally handled error
-
nextToken
public java.lang.String nextToken() throws WrappedException
returns the next token, this handles spaces and quotes- Returns:
- a string
- Throws:
WrappedException
- - internally handled error
-
-