/**
* 采用COPY文件的方式书写模板TEMP.XML文件
*
* @param path,例如D:\DEV\RAP\webapps\rap\book\00000\..\temp.xml
*
*/
public static void writeTempModeXML(String path) {
String sourcePath= "D:/DEV/RAP/webapps/rap/temp.xml";
try {
File in = new File(sourcePath);
File out = new File(path);
FileInputStream inFile = new FileInputStream(in);
FileOutputStream outFile = new FileOutputStream(out);
byte[] buffer = new byte[1024];
int i = 0;
while ((i = inFile.read(buffer)) != -1) {
outFile.write(buffer, 0, i);
}//end while
inFile.close();
outFile.close();
}//end try
catch (Exception e) {
}//end catch
}