title: java: save string as gzip file
body: <p>I'm java beginner, I need something like <a href="https://stackoverflow.com/questions/3649485/how-to-compress-a-string">this</a>:</p>
  
  <pre><code>String2GzipFile (String file_content, String file_name)
  String2GzipFile("Lorem ipsum dolor sit amet, consectetur adipiscing elit.", "lorem.txt.gz")
  </code></pre>
  
  <p>I cant figure out how to do that.</p>