Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| HTML Parser Home Page
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.htmlparser.util
Interface SimpleNodeIterator

All Superinterfaces:
  NodeIterator

public interface SimpleNodeIterator
extends 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
`boolean` | `hasMoreNodes()` Check if more nodes are available.
`Node` | `nextNode()` Get the next node.

Method Detail

### hasMoreNodes

    public boolean hasMoreNodes()

  Check if more nodes are available.

  Specified by:
    `hasMoreNodes` in interface `NodeIterator`
  Returns:
    `true` if a call to `nextHTMLNode()` will succeed.

### nextNode

    public Node nextNode()

  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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| © 2004 Somik Raha Mar 14, 2004
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

HTML Parser is an open source library released under LGPL.