Changes in Jar and Zip

In Java SE 6 there are two changes in jar command
behavior:
-
Before Java SE 6, the timestamps (date
and time) of extracted files by jar command are those listed the current
time means extraction time instead of archive file time. But other
de/compression tools use the archive time. So in Java SE 6, they do a change
in jar command behavior that is the date and time of extracted files by jar
command were the archive time. But if the old behavior is needed, use sun.tools.jar.useExtractionTime=true
- At the time of creating a jar, we have the ability
in executable jar file to specify the entry point for stand-alone
application bundle. The 'e' option declare the entry point through creating
or overriding the Main-Class attribute value in the jar file's manifest.
There are some changes in ZIP File also:
- java.util.zip.DeflaterInputStream -
This stream is used to read the compressed data. For example, This stream
can be useful if any client want to send the data in compressed form
over a network and it can compressed into packets by DeflaterInputStream.
-
java.util.zip.InflaterOutputStream
- This stream is used to write the decompressed data. For example, At the
receiving end decompresses the compressed packet by writing to an
InflaterOutputStream.

|