Package org.htmlparser.util
Class IteratorImpl
- java.lang.Object
-
- org.htmlparser.util.IteratorImpl
-
- All Implemented Interfaces:
NodeIterator
public class IteratorImpl extends java.lang.Object implements NodeIterator
-
-
Constructor Summary
Constructors Constructor Description IteratorImpl(Lexer lexer, ParserFeedback fb)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
hasMoreNodes()
Check if more nodes are available.Node
nextNode()
Get the next node.
-
-
-
Constructor Detail
-
IteratorImpl
public IteratorImpl(Lexer lexer, ParserFeedback fb)
-
-
Method Detail
-
hasMoreNodes
public boolean hasMoreNodes() throws ParserException
Check if more nodes are available.- Specified by:
hasMoreNodes
in interfaceNodeIterator
- Returns:
true
if a call tonextNode()
will succeed.- Throws:
ParserException
-
nextNode
public Node nextNode() throws ParserException
Get the next node.- Specified by:
nextNode
in interfaceNodeIterator
- Returns:
- The next node in the HTML stream, or null if there are no more nodes.
- Throws:
ParserException
- If an unrecoverable error occurs.
-
-