org.htmlparser.util

Class IteratorImpl

public class IteratorImpl extends Object implements NodeIterator

Constructor Summary
IteratorImpl(Lexer lexer, ParserFeedback fb)
Method Summary
booleanhasMoreNodes()
Check if more nodes are available.
NodenextNode()
Get the next node.

Constructor Detail

IteratorImpl

public IteratorImpl(Lexer lexer, ParserFeedback fb)

Method Detail

hasMoreNodes

public boolean hasMoreNodes()
Check if more nodes are available.

Returns: true if a call to nextNode() will succeed.

nextNode

public Node nextNode()
Get the next node.

Returns: The next node in the HTML stream, or null if there are no more nodes.

Throws: ParserException If an unrecoverable error occurs.

HTML Parser is an open source library released under LGPL. SourceForge.net