当前位置:编程学习 > C#/ASP.NET >>

michael_wp原创:用.net实现zip----1

//ZipEntry.cs
using System;
using System.IO;
namespace OrganicBit.Zip {
    /// <summary>Specifies how the the zip entry should be compressed.</summary>
    public enum CompressionMethod {
        /// <summary>No compression.</summary>
        Stored = 0,
        /// <summary>Default and only supported compression method.</summary>
        Deflated = 8
    }
    /// <summary>Specifies the amount of compression to apply to compressed zip entires.</summary>
    public enum CompressionLevel : int {
        /// <summary>Default compression level.    A good choice for speed and size.</summary>
        Default = -1,
        /// <summary>Do not perfrom compression.</summary>
        None = 0,
        /// <summary>Compress the entry as fast as possible size trading size for time.</summary>
        Fastest = 1,
        /// <summary>Compress the entry using a balance of size and time.</summary>
补充:asp.net教程,Win开发 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,