fileCompressionMethod (property)

This property specifies the compression method used for the individual file.

Syntax

- (int)fileCompressionMethod:(int)fileIndex;
- (void)setFileCompressionMethod:(int)fileIndex:(int)newFileCompressionMethod;

/* Possible Values */
CMSZ_LZMA(0),
CMSZ_BZIP_2(1),
CMSZ_DELTA(2),
CMSZ_COPY(3),
CMSZ_DEFLATE(4),
CMSZ_LZMA_2(5)
public func fileCompressionMethod(fileIndex: Int32) throws -> SevenzipFileCompressionMethods
public func setFileCompressionMethod(fileIndex: Int32, newFileCompressionMethod: SevenzipFileCompressionMethods) throws -> Void
public enum SevenzipFileCompressionMethods : Int32 { case cmszLzma = 0 case cmszBzip2 = 1 case cmszDelta = 2 case cmszCopy = 3 case cmszDeflate = 4 case cmszLzma2 = 5 }

Default Value

0

Remarks

This property specifies the compression method used for the individual file. The compression method set here is applicable to this file only. Possible values are:

ValueMethod
cmszLzma (0 - default) LZMA
cmszBzip2 (1) BZip2
cmszDelta (2) Delta
cmszCopy (3) Copy (no compression)
cmszDefalte (4) Deflate
cmszDefalte (5) LZMA2

If this property is not set, the method specified by the CompressionMethod property will be used. Note that different files in the archive may use different compression methods.

The FileIndex parameter specifies the index of the item in the array. The size of the array is controlled by the FileCount property.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks ZIP 2020 iOS Edition - Version 20.0 [Build 8300]