// 读取模板文件。
FileInputStream file = new FileInputStream(new File(templateFile));
byte[] b = new byte[file.available()];
file.read(b);
file.close();
String templateContent = new String(b, "UTF-8");
templateContent = templateContent.replace("###title###", store
.getName());
templateContent = templateContent.replaceAll("###entId###", store
FileInputStream file = new FileInputStream(new File(templateFile));
byte[] b = new byte[file.available()];
file.read(b);
file.close();
String templateContent = new String(b, "UTF-8");
templateContent = templateContent.replace("###title###", store
.getName());
templateContent = templateContent.replaceAll("###entId###", store
.getEnterprise());
//输出
File outFile = new File(publishPath + "/" + outName);
FileOutputStream out = new FileOutputStream(outFile);
out.write(templateContent.getBytes("UTF-8"));
out.flush();
out.close();
return outFile;