code: public static String exportToHtml(Option option, String folderPath, String fileName) {
          if (fileName == null || fileName.length() == 0) {
              return exportToHtml(option, folderPath);
          }
          Writer writer = null;
          List<String> lines = readLines(option);
          //写入文件
          File html = new File(getFolderPath(folderPath) + "/" + fileName);
          try {
              writer = new OutputStreamWriter(new FileOutputStream(html), "UTF-8");
              for (String l : lines) {
                  writer.write(l + "\n");
              }
          } catch (Exception e) {
          } finally {
              if (writer != null) {
                  try {
                      writer.close();
                  } catch (IOException e) {
                      //ignore
                  }
              }
          }
          //处理
          try {
              return html.getAbsolutePath();
          } catch (Exception e) {
              return null;
          }
      }
docs: 导出到指定文件
  
  @param option
  @param folderPath
  @param fileName
  @return 返回html路径