BlackBerry - unzip the zip file

I am developing a BlackBerry application in which I need to unzip a zip file compressed by PKZIP. A package can contain one file, or it can have 10; It will change in every case. I know that the BlackBerry API has built-in support for GZip and Zlib, although I am sure that these methods will not be useful in my case. It doesn't seem like I can extract individual files using these calls.

I tried JZlib ( http://www.jcraft.com/jzlib/ ), which compiled fine, but again doesn’t look as if the methods contained in this case I could pull out individual files.

This seems to be possible, since there is an application called Ziplorer ( http://www.s4bb.com/software/ziplorer/ ) that claims to perform this exact procedure, however, how they do it avoids me.

So, here I am after several hours of work at Google. I welcome any understanding of my problem with open arms.

+3
source share
2 answers

"zip" algorithms are usually branches of the Lempel-Ziv-Welch algorithm . These are fairly efficient stream compression algorithms, but because of how they function, you cannot start unpacking at random points in the file, you need to start from the very beginning.

, , , zip , , , , .

0

Source: https://habr.com/ru/post/1723271/


All Articles