| java.lang.Object com.protomatter.util.ProtoStringTokenizer
ProtoStringTokenizer | public class ProtoStringTokenizer (Code) | | A string tokenizer. Behaves like java.util.StringTokenizer
extept that two delimiters next to eachother are recognized as
two separate delimiters. For instance, splitting "foo||bar"
using "|" as the delimiter will return three tokens
("foo", "" (empty string), and "bar").
|
Constructor Summary | |
public | ProtoStringTokenizer(String string, String tokens) Create a new ProtoStringTokenizer with the given string
to tokenize and the given list of tokens. |
ProtoStringTokenizer | public ProtoStringTokenizer(String string, String tokens)(Code) | | Create a new ProtoStringTokenizer with the given string
to tokenize and the given list of tokens.
|
hasMoreTokens | public boolean hasMoreTokens()(Code) | | Determine if there are more tokens available
|
main | public static void main(String args)(Code) | | A test program.
|
|
|