Home > Guides > Programming > Java

Toggle Open Guide Table of ContentsGuide Contents

Close Table of ContentsGuide Contents

Close Table of Contents

Java Compression and Decompression

Last updated Jan 1, 2004.

Have you ever tried opening a JAR file using WinZip or any other graphical ZIP file viewer or extractor? When Java files are grouped together and compressed into a JAR file, the form of compression used is ZIP.

Java provides you with the JAR tool (in the JRE's bin directory) to create, view, and extract JAR files. But, even more usefully, you'll also find a whole package containing classes to allow you to add ZIP and GZIP compression and decompression to your own applications.

Through the java.util.zip package, Sun provides you with the following functionality:

  • Compression, Decompression, and Viewing of ZIP and GZIP files

  • Compression and Decompression using the DEFLATE compression algorithm (used by ZIP and GZIP)

  • Utility classes for computing CRC-32 and Adler-32 Checksums

In this article, I'll focus on ZIP compression, decompression, and viewing.

Discussions

Read and display the table in the document
Posted Nov 12, 2008 06:01 AM by StrongHead
1 Replies
Correction
Posted Nov 4, 2008 06:09 PM by youssef.mohammed
1 Replies
Instead of synchronising getInstance
Posted Nov 3, 2008 05:42 AM by grahamkelly
1 Replies

Make a New Comment

You must log in in order to post a comment.

Related Resources

Dustin SullivanIf You Are New to Java Programming...
By Dustin SullivanJune 2, 20092 Comments

We recently sat down with several top Java developers to talk about that state of the language as we approach this year's JavaOne.  As we were wrapping up, we threw one last question at them out of curiosity, and we thought you'd like to see what some of them said.

Steven HainesOracle Buys Sun of $7.4B
By Steven HainesApril 20, 2009 No Comments

In a stunning turn of events, Oracle steps in and buys Sun amist the breakdown of IBM's attempt to acquire Sun.

Steven HainesIBM in talks to buy Sun Microsystems for at least $6.5B
By Steven HainesMarch 18, 2009 No Comments

Reuters reported this morning that IBM is in talks to buy Sun Microsystems, which could "bolster their computer server products against rivals such as Hewlett-Packard Co."

See More Blogs

Informit Network