morfologik.stemming
Class DictionaryIterator

java.lang.Object
  extended by morfologik.stemming.DictionaryIterator
All Implemented Interfaces:
java.util.Iterator<WordData>

public final class DictionaryIterator
extends java.lang.Object
implements java.util.Iterator<WordData>

An iterator over WordData entries of a Dictionary. The stems can be decoded from compressed format or the compressed form can be preserved.


Constructor Summary
DictionaryIterator(Dictionary dictionary, java.nio.charset.CharsetDecoder decoder, boolean decodeStems)
           
 
Method Summary
 boolean hasNext()
           
 WordData next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DictionaryIterator

public DictionaryIterator(Dictionary dictionary,
                          java.nio.charset.CharsetDecoder decoder,
                          boolean decodeStems)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<WordData>

next

public WordData next()
Specified by:
next in interface java.util.Iterator<WordData>

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<WordData>