org.apache.http
public
interface
org.apache.http.TokenIterator
org.apache.http.TokenIterator |
Iterator<E>
|
An iterator for String tokens.
This interface is designed as a complement to
HeaderElementIterator, in cases where the items
are plain strings rather than full header elements.
Known Indirect Subclasses
Summary
Details
Public Methods
public
boolean
hasNext()
Indicates whether there is another token in this iteration.
Returns
true
if there is another token,
false
otherwise
public
String
nextToken()
Obtains the next token from this iteration.
This method should only be called while
hasNext
is true.
Returns
- the next token in this iteration