Class JournalReader

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

    public final class JournalReader
    extends org.apache.jackrabbit.guava.common.collect.AbstractIterator<JournalEntry>
    implements java.io.Closeable
    Iterator over the revisions in the journal in reverse order (end of the file to beginning).
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected JournalEntry computeNext()  
      • Methods inherited from class org.apache.jackrabbit.guava.common.collect.AbstractIterator

        endOfData, hasNext, next, peek
      • Methods inherited from class org.apache.jackrabbit.guava.common.collect.UnmodifiableIterator

        remove
      • 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
    • Constructor Detail

      • JournalReader

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

      • computeNext

        protected JournalEntry computeNext()
        Specified by:
        computeNext in class org.apache.jackrabbit.guava.common.collect.AbstractIterator<JournalEntry>
        Throws:
        java.lang.IllegalStateException - if an IOException occurs while reading from the journal file.
      • 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