|
@@ -62,16 +62,16 @@ public class ViewController extends Controller {
|
|
|
public void tempmatch() {
|
|
|
String fileName2String ="";
|
|
|
|
|
|
- List<String> files = new ArrayList<String>();
|
|
|
- File file = new File("/home/zskk/CFIND_XML");
|
|
|
- File[] tempList = file.listFiles();
|
|
|
- for (int m = 0; m < tempList.length; m++) {
|
|
|
- if (tempList[m].isFile()) {
|
|
|
- files.add(tempList[m].toString());
|
|
|
- //文件名,不包含路径
|
|
|
- String fileName = tempList[m].getName();
|
|
|
- fileName2String = fileName2String+fileName+"**";
|
|
|
- File fin_floder = new File("/home/zskk/CFIND_XML/" + fileName);
|
|
|
+// List<String> files = new ArrayList<String>();
|
|
|
+// File file = new File("/home/zskk/CFIND_XML");
|
|
|
+// File[] tempList = file.listFiles();
|
|
|
+// for (int m = 0; m < tempList.length; m++) {
|
|
|
+// if (tempList[m].isFile()) {
|
|
|
+// files.add(tempList[m].toString());
|
|
|
+// //文件名,不包含路径
|
|
|
+// String fileName = tempList[m].getName();
|
|
|
+// fileName2String = fileName2String+fileName+"**";
|
|
|
+ File fin_floder = new File("/home/zskk/CFIND_XML/tt5.xml");
|
|
|
// 创建从文件读取数据的FileInputStream流
|
|
|
FileInputStream fin;
|
|
|
try {
|
|
@@ -126,12 +126,12 @@ public class ViewController extends Controller {
|
|
|
this.renderText(e.toString());
|
|
|
|
|
|
}
|
|
|
- }
|
|
|
- if (tempList[m].isDirectory()) {
|
|
|
- //这里就不递归了,
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
+// }
|
|
|
+// if (tempList[m].isDirectory()) {
|
|
|
+// //这里就不递归了,
|
|
|
+// }
|
|
|
+//
|
|
|
+// }
|
|
|
this.renderText(fileName2String);
|
|
|
|
|
|
}
|