org.htmlparser.util
Class IteratorImpl
java.lang.Object
org.htmlparser.util.IteratorImpl
- All Implemented Interfaces:
- NodeIterator
public class IteratorImpl
- extends Object
- implements NodeIterator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IteratorImpl
public IteratorImpl(Lexer lexer,
ParserFeedback fb)
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.
- Throws:
ParserException
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.