...
|
...
|
@@ -4,8 +4,7 @@ import com.sy.model.LandBusinessTypeList; |
|
|
import com.sy.utils.DateTimeConverter;
|
|
|
import com.sy.utils.FileTool;
|
|
|
|
|
|
import java.io.FileWriter;
|
|
|
import java.io.IOException;
|
|
|
import java.io.*;
|
|
|
|
|
|
/**
|
|
|
* @author
|
...
|
...
|
@@ -18,12 +17,19 @@ public class VeManifestRelation { |
|
|
|
|
|
public static boolean createFile(LandBusinessTypeList landBusinessTypeList){
|
|
|
boolean flag = false;
|
|
|
FileWriter fileWriter;
|
|
|
// FileWriter fileWriter;
|
|
|
File file;
|
|
|
try {
|
|
|
fileWriter = new FileWriter(veManifestDirectory+new DateTimeConverter().dateFormat()+".xml");
|
|
|
fileWriter.write(new VeManifestRelation().getMsg(landBusinessTypeList));
|
|
|
fileWriter.flush();
|
|
|
fileWriter.close();
|
|
|
// fileWriter = new FileWriter(veManifestDirectory+new DateTimeConverter().dateFormat()+".xml");
|
|
|
//
|
|
|
// fileWriter.write(new VeManifestRelation().getMsg(landBusinessTypeList));
|
|
|
// fileWriter.flush();
|
|
|
// fileWriter.close();
|
|
|
file = new File(veManifestDirectory+new DateTimeConverter().dateFormat()+".xml");
|
|
|
Writer writer = new BufferedWriter(new OutputStreamWriter(new FileOutputStream(file),"UTF-8"));
|
|
|
writer.write(new VeManifestRelation().getMsg(landBusinessTypeList));
|
|
|
writer.flush();
|
|
|
writer.close();
|
|
|
flag = true;
|
|
|
}catch (IOException e){
|
|
|
e.printStackTrace();
|
...
|
...
|
|