| | |
| | | public static String excelOutPutPath="E:\\GitWorkSpace\\fg_v2.0\\target\\outPath"; |
| | | public static String excelSourcePath="E:\\GitWorkSpace\\fg_v2.0\\target\\测试数据.xlsx"; |
| | | |
| | | public static int precent=0; |
| | | |
| | | public static void analysisXlx(String excelSourcePath, String voltagePredictExePath, String excelOutPutPath){ |
| | | Process mProcess; |
| | |
| | | while ((s = successResult.readLine()) != null) { |
| | | if ((s.length() > 0) && !"\n".equals(s)) { |
| | | System.out.println(String.format("SuccessMsg:%s", s)); |
| | | precent++; |
| | | } |
| | | } |
| | | while ((s = errorResult.readLine()) != null) { |
| | |
| | | } |
| | | } |
| | | |
| | | public static int getPrecent(){ |
| | | return precent; |
| | | } |
| | | |
| | | public static void main(String[] args) { |
| | | analysisXlx(excelSourcePath,voltagePredictExePath,excelOutPutPath); |