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 boolean
hasNext()
java.nio.ByteBuffer
next()
void
remove()
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfacejava.util.Iterator<java.nio.ByteBuffer>
-
next
public java.nio.ByteBuffer next() throws java.util.NoSuchElementException
- Specified by:
next
in interfacejava.util.Iterator<java.nio.ByteBuffer>
- Throws:
java.util.NoSuchElementException
-
remove
public void remove() throws java.lang.UnsupportedOperationException
- Specified by:
remove
in interfacejava.util.Iterator<java.nio.ByteBuffer>
- Throws:
java.lang.UnsupportedOperationException
-
-