code: public static DownloadResponse exportSpreadsheet(Drive drive, String fileId) throws IOException {
  	  try (InputStream inputStream = drive.files().export(fileId, "text/csv").executeAsInputStream()) {
  	    CSVRenderer csvRenderer = new CSVRenderer(inputStream, "google-spreadsheet", true);
  	    return new DownloadResponse(TEXT_HTML, csvRenderer.renderHtmlTable().getBytes("UTF-8"));
      }
  	}
docs: Exports a spreadsheet in HTML format
  
  @param drive drive client
  @param fileId file id for file to be exported
  @return Spreadsheet in HTML format
  @throws IOException thrown when exporting fails unexpectedly