Class BlockFileLoader.BlockFileIterator

  • All Implemented Interfaces:
    java.util.Iterator<java.nio.ByteBuffer>
    Enclosing class:
    BlockFileLoader

    public class BlockFileLoader.BlockFileIterator
    extends java.lang.Object
    implements java.util.Iterator<java.nio.ByteBuffer>
    Iterates all the blocks in a single block file.
    • Constructor Summary

      Constructors 
      Constructor Description
      BlockFileIterator​(java.io.File blockFile)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean hasNext()  
      java.nio.ByteBuffer next()  
      void remove()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Iterator

        forEachRemaining
    • Constructor Detail

      • BlockFileIterator

        public BlockFileIterator​(java.io.File blockFile)
                          throws java.io.FileNotFoundException
        Throws:
        java.io.FileNotFoundException
    • Method Detail

      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface java.util.Iterator<java.nio.ByteBuffer>
      • next

        public java.nio.ByteBuffer next()
                                 throws java.util.NoSuchElementException
        Specified by:
        next in interface java.util.Iterator<java.nio.ByteBuffer>
        Throws:
        java.util.NoSuchElementException
      • remove

        public void remove()
                    throws java.lang.UnsupportedOperationException
        Specified by:
        remove in interface java.util.Iterator<java.nio.ByteBuffer>
        Throws:
        java.lang.UnsupportedOperationException