| | |
| | | public int parse_result = ConstantDefined.PARSE_RESULT_NULL;*/ |
| | | |
| | | public static ABEDataParase readFBSFile(MultipartFile multipartFile) throws IOException { |
| | | Locale.setDefault(Locale.ENGLISH); |
| | | //Locale.setDefault(Locale.ENGLISH); |
| | | List<ABEFBSData> fbsData = null; |
| | | ABEDataHeadStart fbsDataStart = null; |
| | | ABEDataHeadStop fbsDataStop = null; |
| | |
| | | try { |
| | | //File f = new File(filePath); |
| | | fis = (FileInputStream) multipartFile.getInputStream(); |
| | | if(multipartFile.getOriginalFilename().toUpperCase().endsWith(".DDF")) { |
| | | if(multipartFile.getOriginalFilename().toUpperCase(Locale.ENGLISH).endsWith(".DDF")) { |
| | | //放电数据文件 |
| | | fbsDataStart = new ABEDisDataHeadStart(); |
| | | fbsDataStop = new ABETestDataHeadStop(); |
| | | //Data_Type = ConstantDefined.DATA_TYPE_DIS; |
| | | }else if(multipartFile.getOriginalFilename().toUpperCase().endsWith(".CCF")) { |
| | | }else if(multipartFile.getOriginalFilename().toUpperCase(Locale.ENGLISH).endsWith(".CCF")) { |
| | | //充电数据文件 |
| | | fbsDataStart = new ABEChrDataHeadStart(); |
| | | fbsDataStop = new ABETestDataHeadStop(); |