Package org.bitcoinj.utils
Class BlockFileLoader.BlockFileIterator
- java.lang.Object
-
- org.bitcoinj.utils.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 booleanhasNext()java.nio.ByteBuffernext()voidremove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfacejava.util.Iterator<java.nio.ByteBuffer>
-
next
public java.nio.ByteBuffer next() throws java.util.NoSuchElementException- Specified by:
nextin interfacejava.util.Iterator<java.nio.ByteBuffer>- Throws:
java.util.NoSuchElementException
-
remove
public void remove() throws java.lang.UnsupportedOperationException- Specified by:
removein interfacejava.util.Iterator<java.nio.ByteBuffer>- Throws:
java.lang.UnsupportedOperationException
-
-