Java
  Home arrow Java arrow Page 5 - 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 
 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 - Leveraging GZIP in the Web World


    (Page 5 of 5 )

    One very powerful application of the GZIP package is content compression before a Servlet response from a J2EE Web application.  Many application servers such as IBM WebSphere Application Server support Servlet Filtering, which is the act of modifying a Servlet’s response before sending it back to the client.  You can fairly easily create a Servlet filter that uses GZIP to compress the content that you are returning to a browser.  Most modern browsers have built-in functionality to decompress content that is returned in GZIP format.  For Websites that return a large amount of content, this technique can  tremendously reduce overall response time by minimizing network transfer time (which is often the bulk of the overall transaction).  Please refer to our references section for a link to Jayson Falkner’s article, which gives a detailed description on implementing a Servlet filter that does GZIP compression.
     
     
    Conclusion

     

    The gzip utility (and algorithm) were developed as a free alternative to the compress utility, which uses a patented algorithm.  You can learn more about these utilities at the GZIP website listed in our references section.  In this article, we showed you how to use the java.util.zip package to programmatically create and read files in the gzip format. The programmatic ability offered by the package is indispensable for programmers who want to write their own Java programs to create and read gzip format files.
     
    References


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

       

    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 6 hosted by Hostway