|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.melati.util.HttpHeader.FieldIterator
public abstract class HttpHeader.FieldIterator
Abstract enumeration of fields.
Subtypes decide what type of token to return and how to represent it.
This class serves to remove doubts about whether we should and can
implement Iterator
or Enumeration
and
proves itself unnecessary ;-). But we can factor stuff out and
re-use it later.
Actually, it also removes the need to think about exceptions in subtypes.
Constructor Summary | |
---|---|
HttpHeader.FieldIterator()
|
Method Summary | |
---|---|
boolean |
hasMoreElements()
|
boolean |
hasNext()
|
Object |
next()
Return the next element or an exception. |
Object |
nextElement()
|
abstract Object |
nextToken()
|
void |
remove()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpHeader.FieldIterator()
Method Detail |
---|
public final boolean hasMoreElements()
hasMoreElements
in interface Enumeration
Enumeration.hasMoreElements()
public final Object nextElement()
nextElement
in interface Enumeration
Enumeration.nextElement()
public final boolean hasNext()
hasNext
in interface Iterator
Iterator.hasNext()
,
next()
public void remove() throws UnsupportedOperationException
remove
in interface Iterator
UnsupportedOperationException
Iterator.remove()
public Object next()
next
in interface Iterator
public abstract Object nextToken() throws HttpHeader.HttpHeaderException
HttpHeader.HttpHeaderException
|
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |