org.htmlparser.util

Class IteratorImpl

Implemented Interfaces:
NodeIterator

public class IteratorImpl
extends Object
implements NodeIterator

Constructor Summary

IteratorImpl(Lexer lexer, ParserFeedback fb)

Method Summary

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

Constructor Details

IteratorImpl

public IteratorImpl(Lexer lexer,
                    ParserFeedback fb)

Method Details

hasMoreNodes

public boolean hasMoreNodes()
            throws ParserException
Check if more nodes are available.
Specified by:
hasMoreNodes in interface NodeIterator
Returns:
true if a call to nextNode() will succeed.

nextNode

public Node nextNode()
            throws ParserException
Get the next node.
Specified by:
nextNode in interface NodeIterator
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