|
@@ -72,8 +72,9 @@ public class ViewController extends Controller {
|
|
}
|
|
}
|
|
|
|
|
|
public void tempmatch() {
|
|
public void tempmatch() {
|
|
|
|
+
|
|
String fileName2String ="";
|
|
String fileName2String ="";
|
|
-
|
|
|
|
|
|
+ try {
|
|
// List<String> files = new ArrayList<String>();
|
|
// List<String> files = new ArrayList<String>();
|
|
// File file = new File("/home/zskk/CFIND_XML");
|
|
// File file = new File("/home/zskk/CFIND_XML");
|
|
// File[] tempList = file.listFiles();
|
|
// File[] tempList = file.listFiles();
|
|
@@ -86,7 +87,7 @@ public class ViewController extends Controller {
|
|
File fin_floder = new File("/home/lenovo/CFIND_XML/STUDYUID_2o2112131.xml");
|
|
File fin_floder = new File("/home/lenovo/CFIND_XML/STUDYUID_2o2112131.xml");
|
|
// 创建从文件读取数据的FileInputStream流
|
|
// 创建从文件读取数据的FileInputStream流
|
|
FileInputStream fin;
|
|
FileInputStream fin;
|
|
- try {
|
|
|
|
|
|
+
|
|
fin = new FileInputStream(fin_floder);
|
|
fin = new FileInputStream(fin_floder);
|
|
InputStreamReader isr = null;
|
|
InputStreamReader isr = null;
|
|
isr = new InputStreamReader(fin);
|
|
isr = new InputStreamReader(fin);
|
|
@@ -133,7 +134,7 @@ public class ViewController extends Controller {
|
|
// Db.use("local").save("study", studyinfo);
|
|
// Db.use("local").save("study", studyinfo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- } catch (IOException e) {
|
|
|
|
|
|
+ } catch (Exception e) {
|
|
// TODO Auto-generated catch block
|
|
// TODO Auto-generated catch block
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
this.renderText(e.toString());
|
|
this.renderText(e.toString());
|