Top Description Methods
org.apache.http

public Interface TokenIterator

extends Iterator<Object>
Known Direct Implementers
org.apache.http.message.BasicTokenIterator
Imports
java.util.Iterator

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.
Since
4.0

Method Summary

Modifier and TypeMethod and Description
public boolean

Returns:

true if there is another token, false otherwise
hasNext
()

Redeclares java.util.Iterator.hasNext.

Indicates whether there is another token in this iteration.
public String

Returns:

the next token in this iteration
nextToken
()

Obtains the next token from this iteration.

Inherited from java.util.Iterator:
forEachRemainingnextremove

Method Detail

hasNextback to summary
public boolean hasNext()

Redeclares java.util.Iterator.hasNext.

Indicates whether there is another token in this iteration.

Returns:boolean

true if there is another token, false otherwise

Annotations
@Override
nextTokenback to summary
public String nextToken()

Obtains the next token from this iteration. This method should only be called while hasNext is true.

Returns:String

the next token in this iteration