Class RevisionHistory


  • public class RevisionHistory
    extends java.lang.Object
    Utility for tracing a node back through the revision history.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  RevisionHistory.HistoryElement
      Representation of a point in time for a given node.
    • Constructor Summary

      Constructors 
      Constructor Description
      RevisionHistory​(@NotNull java.io.File directory)
      Create a new instance for a ReadOnlyFileStore in the given directory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Iterator<RevisionHistory.HistoryElement> getHistory​(@NotNull JournalFile journal, @NotNull java.lang.String path)
      Return the history of the node at the given path according to the passed journal.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getHistory

        public java.util.Iterator<RevisionHistory.HistoryElement> getHistory​(@NotNull
                                                                             @NotNull JournalFile journal,
                                                                             @NotNull
                                                                             @NotNull java.lang.String path)
                                                                      throws java.io.IOException
        Return the history of the node at the given path according to the passed journal.
        Parameters:
        journal -
        path -
        Returns:
        Throws:
        java.io.IOException