On Friday 26 June 2009, Kirk Wolf wrote:
> Not only possible, but already available!
>
> See the sample program "com.ibm.jzos.sample.ZipDatasets" in the JZOS
> Sample programs download, which is available here:
> http://www-03.ibm.com/servers/eserver/zseries/software/java/products/
>jzos/jzossamp.html
This is well worth looking into. I'd be curious to see some timing
comparisons of the Java code against Info-ZIP.
However, I still see a need for an up to date Info-ZIP.
For one thing, FOSS seems, to me at least, to be sadly under
utilized on z/OS, and I'd like to help change that in some small way.
Info-ZIP is a standard tool that's been ported to almost any OS you can
think of, but a) the IBM supplied version is way out of date, and b)
the support in the code for MVS - OS/390 - z/OS is likewise way out of
date. I'd like to fix that.
Then, there is the fact that the java.util.zip package does have
some limitations:
1) Although almost all recent zip files use either the STORE or DEFLATE
compression methods, there are a bunch of legacy methods from ancient
times, and unzip can still has code to read old files compressed with
them. However, java.util.zip only supports the STORE and DEFLATE
methods.
2) I'm not sure whether the java.util.zip package supports the new
Zip64 extensions to handle file sizes > 4GB. (Check whether the
ZipEntry's setSize method can take an argument > 0xFFFFFFFF - I'm not
so sure it can, but I'd love to be proven wrong here!)
Cheers,
Bob
----
Bob Woodside
Woodsway Consulting, Inc.
http://www.woodsway.com
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html