Constructor and Description |
---|
BasicHeaderIterator(Header[] headers,
String name)
Creates a new header iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
Header |
next()
Obtains the next header from this iteration.
|
void |
remove()
Removing headers is not supported.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public Header next() throws NoSuchElementException
next
in interface Iterator<Header>
NoSuchElementException
- if there are no more headerspublic void remove() throws UnsupportedOperationException
remove
in interface Iterator<Header>
UnsupportedOperationException
- alwaysCopyright © 2005–2021 The Apache Software Foundation. All rights reserved.