Interface IOutFeatureSetLevel

All Known Subinterfaces:
IOutCreateArchive7z, IOutCreateArchiveBZip2, IOutCreateArchiveGZip, IOutCreateArchiveXz, IOutCreateArchiveZip, IOutUpdateArchive7z, IOutUpdateArchiveBZip2, IOutUpdateArchiveGZip, IOutUpdateArchiveXz, IOutUpdateArchiveZip
All Known Implementing Classes:
OutArchive7zImpl, OutArchiveBZip2Impl, OutArchiveGZipImpl, OutArchiveXzImpl, OutArchiveZipImpl

public interface IOutFeatureSetLevel
Feature interface for the setting 'compression level'. Use SevenZip.openOutArchive(ArchiveFormat) or one of the SevenZip.openOutArchiveXxx() methods to get implementation of this interface.
Since:
9.20-2.00
Author:
Boris Brodski
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    setLevel(int compressionLevel)
    Set compression level: 0 - Copy mode (no compression) 1 - Fastest 3 - Fast 5 - Normal 7 - Maximum 9 - Ultra Note that the meaning of the compression level can differ across archive formats.
  • Method Details

    • setLevel

      void setLevel(int compressionLevel) throws SevenZipException
      Set compression level:
      • 0 - Copy mode (no compression)
      • 1 - Fastest
      • 3 - Fast
      • 5 - Normal
      • 7 - Maximum
      • 9 - Ultra
      Note that the meaning of the compression level can differ across archive formats.
      Parameters:
      compressionLevel - compression level to set. -1 - use default
      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.