public class Journal.EntryIterator
extends java.lang.Object
implements java.util.Iterator
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
hasNext()
Determine if there are more entries in this iteration. 
 | 
java.lang.Object | 
next()
Get the next entry in this iteration. 
 | 
Journal.Entry | 
nextEntry()
Get the next entry, like next() only the return does
 not need to be cast. 
 | 
Journal.Entry | 
nextEntry(java.util.zip.Checksum pSum)
Get the next entry from the journal with checksum 
 | 
void | 
remove()
The iterator does not support modification. 
 | 
public Journal.Entry nextEntry() throws JournalRuntimeException
JournalRuntimeException - if there is a problem reading the entrypublic Journal.Entry nextEntry(java.util.zip.Checksum pSum) throws JournalRuntimeException
pSum - checksum to update with the byte[] that holds the
 serialized entry. NB: the length field (int) which precedes the entry in
 the file is not added to the checksum.
 after the entry is read. This may be null.JournalRuntimeException - if there is a problem reading the entrypublic boolean hasNext()
hasNext in interface java.util.Iteratortrue if there is at least one more entry in this iterationpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - if there are no more entriespublic void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationException - always