3

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

Have already looked at I need a C# library for zipx and http://www.winzip.com/comp_info.htm

Community
  • 1
  • 1
jqa
  • 1,340
  • 6
  • 17

2 Answers2

4

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
  • 3,397
  • 21
  • 22
  • thanks for the links. The chilkat component looks cheap enough to save several hours work. – jqa Sep 13 '10 at 20:09
0

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
  • 588,226
  • 146
  • 1,060
  • 1,140