Interface IArchiveOpenCallback


public interface IArchiveOpenCallback
Callback interface to receive progress information while an archive is being opened for extraction or update.
Since:
4.65-1
Author:
Boris Brodski
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setCompleted(Long files, Long bytes)
    Set amount of completed work.
    void
    setTotal(Long files, Long bytes)
    Set total amount of work to be done.
  • Method Details

    • setTotal

      void setTotal(Long files, Long bytes) throws SevenZipException
      Set total amount of work to be done. Both parameters are optional.
      Parameters:
      files - count of files to be processed (optional)
      bytes - count of bytes to be processed (optional)
      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 files, Long bytes) throws SevenZipException
      Set amount of completed work. Both parameters are optional.
      Parameters:
      files - count of processed files (optional)
      bytes - count of processed bytes (optional)
      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.