package file;

import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * Created by zhaoxu on 2017/7/7.
 */
public class Test {

    public void testFileUtil(){
        FileFactory fileFactory = new FileFactory();

        fileFactory.transformFile("test.txt","test.json");
        //fileFactory.transformFile("test.xml","test2.xml");


    }

    public static void main(String [] args){

        new Test().testFileUtil();
//        String contentByRowObject = "aa\tbb\tcc\tdd\tee";
//        String [] contentByRow = contentByRowObject.split("\\t");
//        System.out.println(contentByRow[0]);

    }
}


@@ -148,16 +148,49 @@
 Test %7B%0A%0A
+    @org.testng.annotations.Test%0A
     publ
@@ -266,25 +266,24 @@
 tory();%0A
-%0A
         
 fileFact
@@ -278,58 +278,22 @@
     
-fileFactory.transformFile(%22test.txt%22,%22test.json%22);
+//tool's entry
 %0A   
@@ -297,18 +297,16 @@
         
-//
 fileFact
@@ -333,292 +333,26 @@
 est.
-xml
+txt
 %22,%22test
-2.xml%22);%0A%0A%0A    %7D%0A%0A    public static void main(String %5B%5D args)%7B%0A%0A        new Test().testFileUtil();%0A//        String contentByRowObject = %22aa%5Ctbb%5Ctcc%5Ctdd%5Ctee%22;%0A//        String %5B%5D contentByRow = contentByRowObject.split(%22%5C%5Ct%22);%0A//        System.out.println(contentByRow%5B0%5D);%0A
+.json%22);
 %0A   

update code