一聚教程网:一个值得你收藏的教程网站

热门教程

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

时间:2022-07-02 11:38:28 编辑:袖梨 来源:一聚教程网

//ZipLib.cs
using System;
using System.IO;
using System.Text;
using System.Runtime.InteropServices;
namespace OrganicBit.Zip {
    /// Support methods for uncompressing zip files.
    ///
    ///     This unzip package allow extract file from .ZIP file, compatible with PKZip 2.04g WinZip, InfoZip tools and compatible.
    ///     Encryption and multi volume ZipFile (span) are not supported.    Old compressions used by old PKZip 1.x are not supported.
    ///     Copyright (C) 1998 Gilles Vollant.    http://www.winimage.com/zLibDll/unzip.htm
    ///     C# wrapper by Gerry Shaw ([email protected]).    http://www.organicbit.com/zip/
    ///

    internal sealed class ZipLib {
        // prevent instances of this class from being constructed
        private ZipLib() {}
        /*
       Create a zipfile.
       pathname contain on Windows NT a filename like "c:zlibzlib111.zip" or on an Unix computer "zlib/zlib111.zip".

热门栏目