Android APIs
Added in API level 1
Deprecated since API level 22
public interface

HeaderIterator

implements Iterator
org.apache.http.HeaderIterator
Known Indirect Subclasses

This interface was deprecated in API level 22.
Please use openConnection() instead. Please visit this webpage for further details.

Class Overview

A type-safe iterator for Header objects.

Summary

Public Methods
abstract boolean hasNext()
Indicates whether there is another header in this iteration.
abstract Header nextHeader()
Obtains the next header 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 header in this iteration.

Returns
  • true if there is another header, false otherwise

public abstract Header nextHeader ()

Added in API level 1

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

Returns
  • the next header in this iteration