Пример #1
0
 internal ZipArchiveEntry(ZipArchive archive, CentralDirectoryHeader header)
 {
     this.Archive  = archive;
     this.header   = header;
     this.settings = ZipHelper.GetCompressionSettings((CompressionMethod)this.header.CompressionMethod, this.Archive.CompressionSettings);
     this.settings.PrepareForZip((CentralDirectoryHeader)null);
     this.existedInArchive = true;
 }
Пример #2
0
 public ZipOutputStream(Stream baseStream, CompressionMethod method)
     : base(baseStream, StreamOperationMode.Write, ZipHelper.GetCompressionSettings(method, (CompressionSettings)null), false, (EncryptionSettings)null)
 {
 }