{"id":376,"date":"2007-10-21T00:00:00","date_gmt":"2007-10-21T00:00:00","guid":{"rendered":"http:\/\/www.strongd.net\/?p=376"},"modified":"2007-10-21T00:00:00","modified_gmt":"2007-10-21T00:00:00","slug":"Jar and Zip Enhancements","status":"publish","type":"post","link":"https:\/\/www.strongd.net\/?p=376","title":{"rendered":"Jar and Zip Enhancements"},"content":{"rendered":"<p>&nbsp;This page summarizes enhancements to the jar and zip support provided in JDK 6.<br \/>\n<H2>API changes<\/H2><br \/>\n<P>Two new compressed streams have been added: <\/P><br \/>\n<UL><br \/>\n<LI><CODE>java.util.zip.DeflaterInputStream<\/CODE>: Data read from this stream is compressed. <\/LI><br \/>\n<LI><CODE>java.util.zip.InflaterOutputStream<\/CODE>: Data written to this stream is decompressed. <\/LI><\/UL>For example, these can be useful if a client wants to send compressed data over a network. The data can be compressed into packets with <CODE>DeflaterInputStream<\/CODE>, and those packets written over the network connection. The receiving end then reads the compressed packets from the network connection, and decompresses them by writing to an <CODE>InflaterOutputStream<\/CODE>.<br \/>\n<H2>Implementation changes<\/H2><br \/>\n<P>On all platforms, zip files can contain more than 64k entries. <\/P><br \/>\n<P>On Windows, some limitations have been removed: <\/P><br \/>\n<UL><br \/>\n<LI>File names longer than 256 characters are now supported. <\/LI><br \/>\n<LI>The limitation of just over 2,000 simultaneously open zip files has been removed. <\/LI><\/UL><br \/>\n<H2>Changes to the <CODE>jar<\/CODE> command<\/H2><br \/>\n<P>There are two changes to the behavior of the <CODE>jar<\/CODE> command: <\/P><br \/>\n<UL><br \/>\n<LI>The timestamps of extracted files are those listed in the archive, instead of the time of extraction. <\/LI><br \/>\n<LI>When creating a jar, it is possible to specify the entry point for stand-alone applications bundled into an executable jar file. The &#8216;e&#8217; option specifies the application entry point by creating or overriding the Main-Class attribute value in the jar file&#8217;s manifest. <\/LI><\/UL><br \/>\n<DIV><\/DIV><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp;This page summarizes enhancements to the jar and zip support provided in JDK 6. API changes Two new compressed streams have been added: java.util.zip.DeflaterInputStream: Data read from this stream is compressed. java.util.zip.InflaterOutputStream: Data written to this stream is decompressed. For example, these can be useful if a client wants to send compressed data over a &hellip; <a href=\"https:\/\/www.strongd.net\/?p=376\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Jar and Zip Enhancements<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=376"}],"version-history":[{"count":0,"href":"https:\/\/www.strongd.net\/index.php?rest_route=\/wp\/v2\/posts\/376\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.strongd.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}