HTML Parser Home Page

org.htmlparser.util
Class IteratorImpl

java.lang.Object
  extended by org.htmlparser.util.IteratorImpl
All 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 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.

© 2006 Derrick Oswald
Sep 17, 2006

HTML Parser is an open source library released under Common Public License. SourceForge.net