Class 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.
    • Field Detail

      • decoder

        private final java.nio.charset.CharsetDecoder decoder
      • entriesIter

        private final java.util.Iterator<java.nio.ByteBuffer> entriesIter
      • separator

        private final byte separator
      • decodeStems

        private final boolean decodeStems
      • inflectedBuffer

        private java.nio.ByteBuffer inflectedBuffer
      • inflectedCharBuffer

        private java.nio.CharBuffer inflectedCharBuffer
      • temp

        private java.nio.ByteBuffer temp
    • 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>