docs: public static long gzip(InputStream inputStream, OutputStream out) throws IOException
    {
      try (GZIPOutputStream outputStream = new GZIPOutputStream(out)) {
        final long result = ByteStreams.copy(inputStream, outputStream);
        out.flush();
        return result;
      }
      finally {
        inputStream.close();
      }
    }