Java
  Home arrow Java arrow Page 2 - GZIPping with Java
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Actuate Whitepapers 
VeriSign Whitepapers 
VPS Hosting 
Weekly Newsletter

 
Developer Updates  
Free Website Content 
IBM developerWorks
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
JAVA

GZIPping with Java
By: Kulvir Singh Bhogal and Javid Jamae
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 26
    2004-02-18

    Table of Contents:
  • GZIPping with Java
  • GZIP vs. ZIP
  • Enough… Let’s Write Some GZIP Code
  • And the Other Way Around: Uncompressing Your GZIP Files (Programmatically)
  • Leveraging GZIP in the Web World

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT

    Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here

    GZIPping with Java - GZIP vs. ZIP


    (Page 2 of 5 )



    Unlike ZIP utilities, the gzip utility does not archive multiple files into one file.  On the contrary, gzip compresses one file into one gzip file.  In order to compress multiple files, one must first use another utility called TAR. TAR uses an archival algorithm to join multiple files into one file. 
     
    Compressing a file that is already compressed doesn’t do much.  For example, GIF is a compressed image format, so when you ZIP or gzip a GIF file, the resulting file will usually be pretty similar in size to the original GIF file. However, if you TAR a number of GIF files into a single file and then gzip the TAR file, a significant size saving can be achieved. This is because there may be common strings found across the joined files that gzip can compress, thus further reducing the total size of the already compressed GIF files.
     
    It is also important to note that GZIP does not support encryption whereas ZIP does. The makers of GZIP find the encryption provided by ZIP to be “weak.” They also suggest using PGP if the user desires strong encryption as well as compression. In fact, PGP incorporates the gzip compression code. See our references section for a link to the PGP Website.

    More Java Articles
    More By Kulvir Singh Bhogal


     

       

    JAVA ARTICLES

    - Adding Images With iTextSharp
    - Adding Columns With iTextSharp
    - Creating Simple PDF Files With iTextSharp
    - The Spring Framework: Understanding IoC
    - Introducing the Spring Framework
    - Java Classes
    - Completing the Syntactic Comparison of Java ...
    - Syntactic Comparison of Java and C/C++
    - Java Statements
    - Conditionals, Expressions and Other Java Ope...
    - Java Operators
    - Primitive Data Types and Basic Language Rule...
    - Java and Object-Oriented Programming
    - Java Beginning Programming
    - Gaming Development Setup





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway