|
HTML Parser Home Page | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.htmlparser.util.PeekingIteratorImpl
| Constructor Summary | |
PeekingIteratorImpl(Lexer lexer,
ParserFeedback fb)
Deprecated. |
|
| Method Summary | |
boolean |
hasMoreNodes()
Deprecated. Check if more nodes are available. |
Node |
nextNode()
Deprecated. Get the next node. |
Node |
peek()
Deprecated. Fetch a node without consuming it. |
void |
push(Node node)
Deprecated. Makes node the next Node that will be returned. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public PeekingIteratorImpl(Lexer lexer,
ParserFeedback fb)
| Method Detail |
public Node peek()
throws ParserException
PeekingIteratorpeek() will return subsequent nodes.
The node returned by peek() will never be a node already
consumed by nextHTMLNode().For example, say there are nodes <H1><H2><H3><H4><H5>, this is the nodes that would be returned for the indicated calls:
peek() H1 peek() H2 nextHTMLNode() H1 peek() H3 nextHTMLNode() H2 nextHTMLNode() H3 nextHTMLNode() H4 peek() H5
peek in interface PeekingIteratornextHTMLNode()
or the node after the last node returned by peek(), whichever
is later in the stream. or null if there are no more nodes available via
the above rules.
ParserExceptionpublic void push(Node node)
node the next Node that will be returned.
node - The node to return next.
public boolean hasMoreNodes()
throws ParserException
hasMoreNodes in interface NodeIteratortrue if a call to nextNode() will succeed.
ParserException
public Node nextNode()
throws ParserException
nextNode in interface NodeIteratorParserException
|
© 2004 Somik Raha Mar 14, 2004
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||