code: private static List<String> readLines(Option option) {
          String optionStr = GsonUtil.format(option);
          InputStream is = null;
          InputStreamReader iReader = null;
          BufferedReader bufferedReader = null;
          List<String> lines = new ArrayList<String>();
          String line;
          try {
              is = OptionUtil.class.getResourceAsStream("/template");
              iReader = new InputStreamReader(is, "UTF-8");
              bufferedReader = new BufferedReader(iReader);
              while ((line = bufferedReader.readLine()) != null) {
                  if (line.contains("##option##")) {
                      line = line.replace("##option##", optionStr);
                  }
                  lines.add(line);
              }
          } catch (Exception e) {
          } finally {
              if (is != null) {
                  try {
                      is.close();
                  } catch (IOException e) {
                      //ignore
                  }
              }
          }
          return lines;
      }
docs: 读取模板并写入数据
  
  @param option
  @return