@NotThreadSafe public class BasicHeaderElementIterator extends Object implements HeaderElementIterator
HeaderElementIterator.| Constructor and Description |
|---|
BasicHeaderElementIterator(HeaderIterator headerIterator) |
BasicHeaderElementIterator(HeaderIterator headerIterator,
HeaderValueParser parser)
Creates a new instance of BasicHeaderElementIterator
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Indicates whether there is another header element in this
iteration.
|
Object |
next() |
HeaderElement |
nextElement()
Obtains the next header element from this iteration.
|
void |
remove() |
public BasicHeaderElementIterator(HeaderIterator headerIterator, HeaderValueParser parser)
public BasicHeaderElementIterator(HeaderIterator headerIterator)
public boolean hasNext()
HeaderElementIteratorhasNext in interface Iterator<Object>hasNext in interface HeaderElementIteratortrue if there is another header element,
false otherwisepublic HeaderElement nextElement() throws NoSuchElementException
HeaderElementIteratorhasNext
is true.nextElement in interface HeaderElementIteratorNoSuchElementExceptionpublic final Object next() throws NoSuchElementException
next in interface Iterator<Object>NoSuchElementExceptionpublic void remove()
throws UnsupportedOperationException
remove in interface Iterator<Object>UnsupportedOperationExceptionCopyright © 2005–2013 The Apache Software Foundation. All rights reserved.