找回密码
 立即注册

QQ登录

只需一步,快速开始

frank.zhang

社区贡献组

83

主题

4000

帖子

6万

积分

社区贡献组

积分
69459

活字格认证微信认证勋章元老葡萄

frank.zhang
社区贡献组   /  发表于:2015-2-17 12:51  /   查看:4489  /  回复:0
问题描述:C1Zip:处理标准Zip文件
问题解答:本文介绍用C1Zip的C1ZipFile类处理Zip文件,它包括创建、打开、编辑标准的Zip文件。还可以列出Zip文件中的条目,添加、删除、扩展或查看文件,压缩整个目录,并使用密码保护/加密。C1ZipFile是处理zip文件的类。C1ZipFile具有一个C1ZipFile.Entries属性,该属性代表了一个zip文件中条目的集合。

关键代码:
  1. // 摘要:
  2.     //     Specifies the level of compression to be applied when adding entries to a
  3.     //     C1.C1Zip.C1ZipFile.
  4.     public enum CompressionLevelEnum
  5.     {
  6.         // 摘要:
  7.         //     High compression, high speed.
  8.         DefaultCompression = -1,
  9.         //
  10.         // 摘要:
  11.         //     No Compression.
  12.         NoCompression = 0,
  13.         //
  14.         // 摘要:
  15.         //     Low compression, highest speed.
  16.         BestSpeed = 1,
  17.         //
  18.         // 摘要:
  19.         //     Highest compression, low speed.
  20.         BestCompression = 9,
  21.     }
复制代码


效果截图:



源码下载:
C1Zip:处理标准Zip文件示例

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?立即注册

x

0 个回复

您需要登录后才可以回帖 登录 | 立即注册
返回顶部