edu.jhu.nlp.wikipedia
Class WikiPageIterator

java.lang.Object
  extended by edu.jhu.nlp.wikipedia.WikiPageIterator

public class WikiPageIterator
extends java.lang.Object

A class to iterate the pages after the wikipedia XML file has been parsed with WikiXMLDOMParser.

See Also:
WikiXMLDOMParser

Constructor Summary
WikiPageIterator(java.util.Vector<WikiPage> list)
           
 
Method Summary
 boolean hasMorePages()
           
 WikiPage nextPage()
          Advances the iterator by one position.
 void reset()
          Reset the iterator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WikiPageIterator

public WikiPageIterator(java.util.Vector<WikiPage> list)
Method Detail

hasMorePages

public boolean hasMorePages()
Returns:
true if there are more pages to be read

reset

public void reset()
Reset the iterator.


nextPage

public WikiPage nextPage()
Advances the iterator by one position.

Returns:
a WikiPage