C#中的java.util.zip.deflater等效项 [英] java.util.zip.deflater equivalent in c#

查看:107
本文介绍了C#中的java.util.zip.deflater等效项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道如何在.NET中实现Java的Deflater.deflate()功能,以便Java的Infalter.inflate()方法可以理解吗?

does anyone know how can I achieve java's Deflater.deflate() functionality in .NET so it would be understandable for java's Infalter.inflate() method?

致谢,拉法尔

推荐答案

我使用了 #zipLib .很简单.

来自他们的网站:

#ziplib(SharpZipLib,以前为NZipLib)是一个完全用C#为.NET平台编写的Zip,GZip,Tar和BZip2库.它实现为程序集(可在GAC中安装),因此可以轻松地并入其他项目(使用任何.NET语言).#ziplib的创建者这样说:我已将zip库移植到C#,因为我需要gzip/zip压缩,并且我不想使用libzip.dll或类似的东西.我希望全部使用纯C#."

#ziplib (SharpZipLib, formerly NZipLib) is a Zip, GZip, Tar and BZip2 library written entirely in C# for the .NET platform. It is implemented as an assembly (installable in the GAC), and thus can easily be incorporated into other projects (in any .NET language). The creator of #ziplib put it this way: "I've ported the zip library over to C# because I needed gzip/zip compression and I didn't want to use libzip.dll or something like this. I want all in pure C#."

这篇关于C#中的java.util.zip.deflater等效项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆