Class JournalReader

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, java.util.Iterator<JournalEntry>

    public final class JournalReader
    extends AbstractIterator<JournalEntry>
    implements java.io.Closeable
    Iterator over the revisions in the journal in reverse order (end of the file to beginning).
    • Constructor Detail

      • JournalReader

        public JournalReader​(JournalFile journal)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException