Package org.htmlparser.util
Interface SimpleNodeIterator
- All Superinterfaces:
NodeIterator
The HTMLSimpleEnumeration interface is similar to NodeIterator,
except that it does not throw exceptions. This interface is useful
when using HTMLVector, to enumerate through its elements in a simple
manner, without needing to do class casts for Node.
- Author:
- Somik Raha
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if more nodes are available.nextNode()
Get the next node.
-
Method Details
-
hasMoreNodes
boolean hasMoreNodes()Check if more nodes are available.- Specified by:
hasMoreNodes
in interfaceNodeIterator
- Returns:
true
if a call tonextHTMLNode()
will succeed.
-
nextNode
Node nextNode()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.
-