protected class ArchiveReader.ArchiveRecordIterator extends java.lang.Object implements java.util.Iterator<ArchiveRecord>
hasNext() and next() if
trouble pulling record from underlying stream.| Modifier | Constructor and Description |
|---|---|
protected |
ArchiveRecordIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected ArchiveRecord |
exceptionNext()
A next that throws exceptions and has handling of
recoverable exceptions moving us to next record.
|
boolean |
hasNext() |
protected boolean |
innerHasNext() |
protected ArchiveRecord |
innerNext() |
ArchiveRecord |
next()
Tries to move to next record if we get
RecoverableIOException. |
void |
remove() |
public boolean hasNext()
hasNext in interface java.util.Iterator<ArchiveRecord>java.lang.RuntimeException - Can throw an IOException wrapped in a
RuntimeException if a problem reading underlying stream (Corrupted
gzip, etc.).protected boolean innerHasNext()
public ArchiveRecord next()
RecoverableIOException. If not strict
tries to move to next record if we get an
IOException.next in interface java.util.Iterator<ArchiveRecord>java.lang.RuntimeException - Throws a runtime exception,
usually a wrapping of an IOException, if trouble getting
a record (Throws exception rather than return null).protected ArchiveRecord exceptionNext() throws java.io.IOException, java.lang.RuntimeException
java.io.IOExceptionjava.lang.RuntimeException - Thrown when we've reached maximum
retries.protected ArchiveRecord innerNext() throws java.io.IOException
java.io.IOExceptionpublic void remove()
remove in interface java.util.Iterator<ArchiveRecord>Copyright © 2019 The International Internet Preservation Consortium. All Rights Reserved.