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

作者:袖梨 2022-07-02
//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".

相关文章

精彩推荐