|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xalan.transformer.NumeratorFormatter.NumberFormatStringTokenizer
static class NumeratorFormatter.NumberFormatStringTokenizer
This class returns tokens using non-alphanumberic characters as delimiters.
Field Summary | |
---|---|
private int |
currentPosition
Field holding the current position in the string |
private int |
maxPosition
The total length of the string |
private java.lang.String |
str
The string to tokenize |
Constructor Summary | |
---|---|
NumeratorFormatter.NumberFormatStringTokenizer(java.lang.String str)
Construct a NumberFormatStringTokenizer. |
Method Summary | |
---|---|
(package private) int |
countTokens()
Calculates the number of times that this tokenizer's nextToken method can be called before it generates an
exception. |
(package private) boolean |
hasMoreTokens()
Tells if nextToken will throw an exception * if it is called. |
(package private) java.lang.String |
nextToken()
Returns the next token from this string tokenizer. |
(package private) void |
reset()
Reset tokenizer so that nextToken() starts from the beginning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private int currentPosition
private int maxPosition
private java.lang.String str
Constructor Detail |
---|
NumeratorFormatter.NumberFormatStringTokenizer(java.lang.String str)
str
- The string to tokenizeMethod Detail |
---|
void reset()
java.lang.String nextToken()
java.util.NoSuchElementException
- if there are no more tokens in this
tokenizer's string.boolean hasMoreTokens()
nextToken
will throw an exception * if it is called.
nextToken
can be called * without throwing an exception.int countTokens()
nextToken
method can be called before it generates an
exception.
StringTokenizer.nextToken()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |