org.htmlparser.util

Interface NodeIterator

Known Subinterfaces:
SimpleNodeIterator
Known Implementing Classes:
IteratorImpl, NodeTreeWalker

public interface NodeIterator

Method Summary

boolean
hasMoreNodes()
Check if more nodes are available.
Node
nextNode()
Get the next node.

Method Details

hasMoreNodes

public boolean hasMoreNodes()
            throws ParserException
Check if more nodes are available.
Returns:
true if a call to nextHTMLNode() will succeed.

nextNode

public Node nextNode()
            throws ParserException
Get the next node.
Returns:
The next node in the HTML stream, or null if there are no more nodes.

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