Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
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 .