Dual zipfs
Omair Majid
omajid at redhat.com
Wed Jun 1 15:08:40 UTC 2016
* Andrew Hughes <gnu.andrew at redhat.com> [2016-05-31 15:33]:
> com.sun.nio.zipfs is a demonstration of using the NIO 2 API and was
> adding in OpenJDK 7. I'm surprised it's actually installed in the main
> tree and not the demo tree, actually. It's in
> jdk/src/share/demo/nio/zipfs/src/com/sun/nio/zipfs in the OpenJDK
> source tree.
From
https://blogs.oracle.com/xuemingshen/entry/the_zip_filesystem_provider_in1:
> The more test cases and sample code we wrote the more we are convinced
> that it might be a good idea to simply deploy this ZIP file system
> provider into the system extensions directory, so the provider can be
> used directly (without playing with the -classpath to add the zipfs.jar
> into your classpath) to access a ZIP/Jar file via the NIO2 file system
> APIs, as an alternative to the existing java.util.zip/jar.ZipFile class.
> So since JDK7/b123, the zipfs.jar has been deployed into the lib/ext.
> You now can use the ZIP filesystem "out of the box" and access a ZIP/Jar
> file just like access a "normal" file system.
Thanks,
Omair
--
PGP Key: 66484681 (http://pgp.mit.edu/)
Fingerprint = F072 555B 0A17 3957 4E95 0056 F286 F14F 6648 4681
More information about the distro-pkg-dev
mailing list