| java.lang.Object com.sun.perseus.util.SimpleTokenizer
SimpleTokenizer | final public class SimpleTokenizer (Code) | | This simple tokenizer is able to break down a String into tokens,
given a single delimiter character.
version: $Id: SimpleTokenizer.java,v 1.3 2006/04/21 06:35:58 st125089 Exp $ |
Field Summary | |
protected int | cur The current parse index. | protected String | data The data to parse. | protected char[] | del The array of delimiters. | protected int | length The length of the string to parse. |
cur | protected int cur(Code) | | The current parse index.
|
del | protected char[] del(Code) | | The array of delimiters.
|
length | protected int length(Code) | | The length of the string to parse.
|
SimpleTokenizer | public SimpleTokenizer(String data, String delimiters)(Code) | | Parameters: data - the string to tokenizer. Should not be null. Parameters: delimiters - each character in the string is considered to be a delimiter. Should not be null. an array of tokens. |
countTokens | public int countTokens()(Code) | | the number of tokens |
curIsDelimiter | boolean curIsDelimiter()(Code) | | true if the current character is a delimiter. |
hasMoreTokens | public boolean hasMoreTokens()(Code) | | true if there are more tokens available. |
skipDelimiters | void skipDelimiters()(Code) | | Moves the current position to the first next character which is
a delimiter.
|
skipToken | void skipToken()(Code) | | Moves the current position to the first next character which is
not a delimiter.
|
|
|