Interface IProgress

All Known Subinterfaces:
IArchiveExtractCallback, IOutCreateCallback<T>

public interface IProgress
This interface provides progress information of a process.
Since:
4.65-1
Author:
Boris Brodski
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setCompleted(long complete)
    Set current amount of completed work
    void
    setTotal(long total)
    Set total amount of work
  • Method Details

    • setTotal

      void setTotal(long total) throws SevenZipException
      Set total amount of work
      Parameters:
      total - amount of work
      Throws:
      SevenZipException - in error case. If this method ends with an exception, the current operation will be reported to 7-Zip as failed. There is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as IInArchive.extract() or SevenZip.openInArchive(). Up to four exceptions depending on the situation can be saved for further analysis. See SevenZipException and SevenZipException.printStackTraceExtended() for details.
    • setCompleted

      void setCompleted(long complete) throws SevenZipException
      Set current amount of completed work
      Parameters:
      complete - amount of completed work
      Throws:
      SevenZipException - in error case. If this method ends with an exception, the current operation will be reported to 7-Zip as failed. There is no guarantee that no further callback methods will be called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as IInArchive.extract() or SevenZip.openInArchive(). Up to four exceptions depending on the situation can be saved for further analysis. See SevenZipException and SevenZipException.printStackTraceExtended() for details.