This week's book giveaway is in the Java 9 forum.
We're giving away four copies of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications and have Sander Mak & Paul Bakker on-line!
See this thread for details.
Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

applets in browser receiving gzipped content  RSS feed

 
Stephen Huey
Ranch Hand
Posts: 618
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
http://www.onjava.com/pub/a/onjava/2003/11/19/filters.html

The above article says that most modern web browsers can automatically unzip gzipped content (so apparently it's a good practice to GZIP as much content as you can before it travels to your client's web browser). What if my client's browser is running an applet on my site, though?

Does anyone know if the browser will unzip the content before the applet has to deal with it, or will the applet have to unzip it?
 
Joe Ess
Bartender
Posts: 9436
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My guess would be that if an applet requests content, the request bypasses the browser and is done directly from the VM. The standard Java API provides classes in java.util.zip to work with compressed data.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!