title: compressing file to gz
body: <p>Exist some other way in order to compress to gz better?</p>
  
  <pre><code>FileOutputStream outFile = new FileOutputStream(outFileName);
  GZIPOutputStream out = new GZIPOutputStream(outFile);
  byte[] buf = new byte[1024];
  int len;
  while ((len = in.read(buf)) &gt; 0) 
  {
      out.write(buf, 0, len);
  }
  in.close();
  out.close();
  outFile.close();
  </code></pre>