Skip to content

Most visited

Recently visited

navigation

TokenIterator | Android Developers

to top
Android APIs
public interface

TokenIterator

implements Iterator<E>
org.apache.http.TokenIterator
Known Indirect Subclasses

Class Overview

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.

Summary

Public Methods
abstract boolean hasNext()
Indicates whether there is another token in this iteration.
abstract String nextToken()
Obtains the next token from this iteration.
[Expand]
Inherited Methods
From interface java.util.Iterator

Public Methods

public abstract boolean hasNext ()

Added in API level 1

Indicates whether there is another token in this iteration.

Returns
  • true if there is another token, false otherwise

public abstract String nextToken ()

Added in API level 1

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

Returns
  • the next token in this iteration
This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.