title: Append data to a gzip file with Java
body: <p>I have a log file that may be huge (>4GB) so I am thinking of "gzipping it on the fly", meaning I would like to insert text directly at the end of the gzip file (I want to create my own file appender for logback).
  Is it possible to append stuff to an existing gzip file? It looks like the only way is to open the existing one with GZIPInputStream, read it and write the data in a new file with GZIPOutputStream and append the new stuff at the end of that new file, then I guess remove the old gzip and rename the new one to the old name...</p>
  
  <p>Am I wrong? Better ideas?</p>
  
  <p>Thanks!</p>