Skip to content

Most visited

Recently visited

navigation

BasicHeaderElementIterator | Android Developers

to top
Android APIs
public class

BasicHeaderElementIterator

extends Object
implements HeaderElementIterator
java.lang.Object
   ↳ org.apache.http.message.BasicHeaderElementIterator

Class Overview

Basic implementation of a HeaderElementIterator.

Summary

Public Constructors
BasicHeaderElementIterator(HeaderIterator headerIterator, HeaderValueParser parser)
Creates a new instance of BasicHeaderElementIterator
BasicHeaderElementIterator(HeaderIterator headerIterator)
Public Methods
boolean hasNext()
Indicates whether there is another header element in this iteration.
final Object next()
Returns the next object and advances the iterator.
HeaderElement nextElement()
Obtains the next header element from this iteration.
void remove()
Removes the last object returned by next from the collection.
[Expand]
Inherited Methods
From class java.lang.Object
From interface java.util.Iterator
From interface org.apache.http.HeaderElementIterator

Public Constructors

public BasicHeaderElementIterator (HeaderIterator headerIterator, HeaderValueParser parser)

Added in API level 1

Creates a new instance of BasicHeaderElementIterator

public BasicHeaderElementIterator (HeaderIterator headerIterator)

Added in API level 1

Public Methods

public boolean hasNext ()

Added in API level 1

Indicates whether there is another header element in this iteration.

Returns
  • true if there is another header element, false otherwise

public final Object next ()

Added in API level 1

Returns the next object and advances the iterator.

Returns
  • the next object.

public HeaderElement nextElement ()

Added in API level 1

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

Returns
  • the next header element in this iteration

public void remove ()

Added in API level 1

Removes the last object returned by next from the collection. This method can only be called once between each call to next.

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.

Take a one-minute survey?
Help us improve Android tools and documentation.