public class BasicHeaderIterator extends java.lang.Object implements HeaderIterator
HeaderIterator
.Constructor and Description |
---|
BasicHeaderIterator(Header[] headers,
java.lang.String name)
Creates a new header iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Indicates whether there is another header in this iteration.
|
java.lang.Object |
next()
Returns the next header.
|
Header |
nextHeader()
Obtains the next header from this iteration.
|
void |
remove()
Removing headers is not supported.
|
public BasicHeaderIterator(Header[] headers, java.lang.String name)
headers
- an array of headers over which to iteratename
- the name of the headers over which to iterate, or
null
for anypublic boolean hasNext()
HeaderIterator
hasNext
in interface java.util.Iterator<java.lang.Object>
hasNext
in interface HeaderIterator
true
if there is another header,
false
otherwisepublic Header nextHeader() throws java.util.NoSuchElementException
nextHeader
in interface HeaderIterator
java.util.NoSuchElementException
- if there are no more headerspublic final java.lang.Object next() throws java.util.NoSuchElementException
nextHeader
, but not type-safe.next
in interface java.util.Iterator<java.lang.Object>
java.util.NoSuchElementException
- if there are no more headerspublic void remove() throws java.lang.UnsupportedOperationException
remove
in interface java.util.Iterator<java.lang.Object>
java.lang.UnsupportedOperationException
- alwaysCopyright © 2010 - 2019 Adobe. All Rights Reserved