code: public static void generateACEB(File dest, String json) throws IOException {
      FileOutputStream fos = new FileOutputStream(dest);
      GZIPOutputStream gos = new GZIPOutputStream(fos);
      gos.write(json.getBytes("UTF-8"));
      gos.close();
      fos.close();
  
    }
docs: Write a GZIP compressed string to a file.
  <p>
  This method GZIP compresses a string and writes it to a file. This method
  automatically closes the OutputStream used to create the file.
  
  @param dest Destination {@link File}
  @param json String to GZIP compress and write.
  @throws IOException if there is an I/O error