
One of the often requested features in Codename One is zip support, we had some issues with it until a couple
of years back when we added tar and gzip support. But people still asked for standard zip file support which was
missing.
We’re working on a tool that we hope to share next week that needs zip to work. Initially we thought about doing
this natively as zip works on most native OS’s but one of the true benefits of the tool is if we can get it to work in
the JavaScript port live on the web…
So I “ported” the zipme project to Codename One
here. I’m quoting the word “ported” because I did almost nothing.
I just copied the sources into a new cn1lib project and it “just worked” for the most part.
I did have to fix one thing in the iOS builds though. Some hackers use String objects to store binary data in
rather creative ways to save a bit of syntax. This practice is rather inefficient when compared to just using arrays
but it is still widely practiced. In this case this code was used:
String bitReverse = "