net.sf.sevenzipjbinding
Interface IOutFeatureSetLevel

All Known Subinterfaces:
IOutCreateArchive7z, IOutCreateArchiveBZip2, IOutCreateArchiveGZip, IOutCreateArchiveZip, IOutUpdateArchive7z, IOutUpdateArchiveBZip2, IOutUpdateArchiveGZip, IOutUpdateArchiveZip
All Known Implementing Classes:
OutArchive7zImpl, OutArchiveBZip2Impl, OutArchiveGZipImpl, 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:
IOutCreateArchive

Method Summary
 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 compression level can differ through out different archive formats.
 

Method Detail

setLevel

void setLevel(int compressionLevel)
              throws SevenZipException
Set compression level: Note, that the meaning of compression level can differ through out different 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 are no guarantee, that there are no further call back methods will get called. The first and last thrown exceptions will be saved and thrown later on from the originally called method such as ISevenZipInArchive.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.