public class BasicHeaderIterator extends Object implements HeaderIterator
HeaderIterator.| Constructor and Description |
|---|
BasicHeaderIterator(Header[] headers,
String name)
Creates a new header iterator.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Indicates whether there is another header in this iteration.
|
Object |
next()
Returns the next header.
|
Header |
nextHeader()
Obtains the next header from this iteration.
|
void |
remove()
Removing headers is not supported.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic boolean hasNext()
HeaderIteratorhasNext in interface Iterator<Object>hasNext in interface HeaderIteratortrue if there is another header,
false otherwisepublic Header nextHeader() throws NoSuchElementException
nextHeader in interface HeaderIteratorNoSuchElementException - if there are no more headerspublic final Object next() throws NoSuchElementException
nextHeader, but not type-safe.next in interface Iterator<Object>NoSuchElementException - if there are no more headerspublic void remove()
throws UnsupportedOperationException
remove in interface Iterator<Object>UnsupportedOperationException - alwaysCopyright © 2010 - 2020 Adobe. All Rights Reserved