public interface TokenIterator
extends java.util.Iterator<java.lang.Object>
String tokens.
This interface is designed as a complement to
HeaderElementIterator, in cases where the items
are plain strings rather than full header elements.| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Indicates whether there is another token in this iteration.
|
java.lang.String |
nextToken()
Obtains the next token from this iteration.
|
boolean hasNext()
hasNext in interface java.util.Iterator<java.lang.Object>true if there is another token,
false otherwisejava.lang.String nextToken()
hasNext
is true.