Interface TarRecovery


  • public interface TarRecovery
    A strategy for the recovery of segments.
    • Method Detail

      • recoverEntry

        void recoverEntry​(java.util.UUID uuid,
                          byte[] data,
                          EntryRecovery entryRecovery)
                   throws java.io.IOException
        Recover the data and meta-data of the given segment. The implementor of this method might want to parse the content of the segment and generate any metadata as needed. The result of the recovery process has to be saved in the provided TarWriter.
        Parameters:
        uuid - the identifier of the segment.
        data - the raw data of the segment.
        entryRecovery - the destination of the recovered data.
        Throws:
        java.io.IOException - if an I/O error occurs while recovering the data of the segment.