Package org.xipki.qa
Class FileBigIntegerIterator
- java.lang.Object
-
- org.xipki.qa.FileBigIntegerIterator
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Iterator<BigInteger>
public class FileBigIntegerIterator extends Object implements Iterator<BigInteger>, Closeable
Iterator which iterates theBigIntegerspecified in the file.- Since:
- 2.1.0
- Author:
- Lijun Liao (xipki)
-
-
Constructor Summary
Constructors Constructor Description FileBigIntegerIterator(String fileName, boolean hex, boolean loop)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()booleanhasNext()BigIntegernext()-
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, remove
-
-
-
-
Constructor Detail
-
FileBigIntegerIterator
public FileBigIntegerIterator(String fileName, boolean hex, boolean loop) throws IOException
- Throws:
IOException
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<BigInteger>
-
next
public BigInteger next()
- Specified by:
nextin interfaceIterator<BigInteger>
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-