任何人都知道我如何能够实现 j。 Deflate()Function in .NET, so,java s Infalter.inflate()方法是可以理解的?
regards, Rafal
任何人都知道我如何能够实现 j。 Deflate()Function in .NET, so,java s Infalter.inflate()方法是可以理解的?
regards, Rafal
我使用了。 这完全是直截了当的。
摘自网站:
#ziplib(SharpZipLib,原为NZipLib)是Zip、GZip、Tar和BZip2图书馆,完全在C#为之撰写。 NET平台。 它是作为大会(可在GAAC)实施的,因此可以很容易地纳入其他项目(以任何网语言)。 #ziplib的创建者这样说:“由于我需要gzip/zip压缩,我不想使用校准。 dll或类似情况。 我完全想要的是C#。
ZlibStream在DotNetZip包(https://dotnetzip.codeplex.com/)中的等级相当于java.util.zip.deflater。
Nuget: Install-Package DotNetZip
单体阵列的使用:
ZlibStream.CompressBuffer(dataBytesArray);
ZlibStream.UncompressBuffer(dataBytesArray);
它还有压缩和压缩,而且这一类与网络DefalteStream完全一样。 请注意,DotNetZip的DeflateStream与Java不同,ZlibStream是一样的。
Additional Info: DeflateStream of .NET is not compatible with Deflate in Java. In fact, Java uses Zlib and adds 2-6 bytes header and 4 bytes checksum by default. Cutting off the bytes (suggested by some articles like http://blogs.msdn.com/b/bclteam/archive/2007/05/16/system-io-compression-capabilities-kim-hamilton.aspx) will work, but I don t suggest it as parsing header length may cause bugs.
http://msdn.microsoft.com/en-us/library/system.io.compression.aspx”rel=“nofollow” System.IO.Compression namespace. http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx”rel=“nofollow” DeflateStream使用压缩计算法,也使用java.util.zip.deflater。 因此,你可以压缩。 NET and decompress with Java implementation and 相反.
There
或
which might help, but I don t know how easy they are to use 或 if compatible with java (s或ry not a great answer).
There a nice blog post about zip stuff in: http://blogs.msdn.com/b/bclteam/archive/2010/06/28/w或king-with-zip-files-in-net.aspx
Or a few open source zip utilities around f或 c#.
Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...
Check this, List<String> list = new ArrayList<String>(); for (int i = 0; i < 10000; i++) { String value = (""+UUID.randomUUID().getLeastSignificantBits()).substring(3, ...
I am in the middle of solving a problem where I think it s best suited for a decorator and a state pattern. The high level setting is something like a sandwich maker and dispenser, where I have a set ...
I have been trying to execute a MS SQL Server stored procedure via JDBC today and have been unsuccessful thus far. The stored procedure has 1 input and 1 output parameter. With every combination I ...
I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...
If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...
I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....
I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...