Is your feature request related to a problem? Please describe.
When I use ZipOutputStream, I can set compression level. When I want to add an entry to an existing zip archive I should use ZipFile and can't set compression level.
Describe the solution you'd like
I suggest to add CompressionLevel property or SetLevel() method to ZipFile and use it in the ZipFile.GetOutputStream instead of the hard coded 9:
|
var dos = new DeflaterOutputStream(result, new Deflater(9, true)) |
Describe alternatives you've considered
Alternatively I want an ability to add an entry to an exitsing archive using ZipOutputStream
Tags
ZIP
Additional context
No response
Is your feature request related to a problem? Please describe.
When I use ZipOutputStream, I can set compression level. When I want to add an entry to an existing zip archive I should use ZipFile and can't set compression level.
Describe the solution you'd like
I suggest to add CompressionLevel property or SetLevel() method to ZipFile and use it in the
ZipFile.GetOutputStreaminstead of the hard coded9:SharpZipLib/src/ICSharpCode.SharpZipLib/Zip/ZipFile.cs
Line 2754 in ff2d7c3
Describe alternatives you've considered
Alternatively I want an ability to add an entry to an exitsing archive using ZipOutputStream
Tags
ZIP
Additional context
No response