title: Java Deflater strategies - DEFAULT_STRATEGY, FILTERED and HUFFMAN_ONLY
body: <p>I'm trying to find a balance between performance and degree of compression when gzipping a Java webapp response.</p>
  
  <p>In looking at the Deflater class, I can set a level and a strategy. The levels are self explanatory - <code>BEST_SPEED</code> to <code>BEST_COMPRESSION</code>.</p>
  
  <p>I'm not sure regarding the strategies - <code>DEFAULT_STRATEGY</code>, <code>FILTERED</code> and <code>HUFFMAN_ONLY</code></p>
  
  <p>I can make some sense from the Javadoc but I was wondering if someone had used a specific strategy in their apps and if you saw any difference in terms of performance / degree of compression.</p>