tags:

views:

48

answers:

2

Any suggestions for a tool/object/utility to read a .zipx file in java?

Have already looked at http://stackoverflow.com/questions/1200289/i-need-a-c-library-for-zipx and http://www.winzip.com/comp_info.htm

A: 

I don't find any such library, so I think your best bet is to invoke the WinZip command line, using java.lang.Runtime#exec(..)

Bozho
+2  A: 

It appears as though the ZIPX format is a regular ZIP container, just using compression methods other than DEFLATE.

This means you can use Java's regular ZipFile class to extract the byte[] contents, but depending on the value of ZipEntry.getMethod() you'll have to use non-JDK classes to decompress.

Compression methods and Java support:

Note: this is for open-source Java libraries. It appears there's commercial, non-open-source libraries for all these.

In other words, apart from the above software from Chilkat software, you're gonna have to write a bunch of your own code to fully support ZIPX.

Needless to say, the folks at WinZip could add more compression methods at any point, so ZIPX isn't a fixed target.

The Alchemist
thanks for the links. The chilkat component looks cheap enough to save several hours work.
james