| | |
| | |
|
| | |
|
| | | //FBS9600 内阻数据集
|
| | | public class RESDataInfo {
|
| | | public class RESDataInfo implements FileDataParseInfo_Interface{
|
| | |
|
| | | public RESDataHead resDataHead; //内阻数据头
|
| | | public List<RESData> resDatas; //内阻数据集
|
| | | public RESDataHead resDataHead; //内阻数据头
|
| | | public List<RESData> resDatas; //内阻数据集
|
| | |
|
| | | public int parse_result = PARSE_RESULT_NULL;
|
| | | |
| | | public static final int PARSE_RESULT_NULL = 0; //未知
|
| | | public static final int PARSE_RESULT_SUCCESS = 1; //解析成功
|
| | | public static final int PARSE_RESULT_NOTFOUNDFILE = 2; //文件未找到
|
| | | public static final int PARSE_RESULT_FILETYPEERR = 3; //文件格式错误
|
| | | public static final int PARSE_RESULT_FILEERROR = 4; //文件异常
|
| | | public final int file_type = FILE_TYPE_RES; //文件类型
|
| | |
|
| | | public RESDataInfo() {
|
| | | resDataHead = new RESDataHead(); //内阻数据头
|
| | | resDatas = new ArrayList<>(); //内阻数据集
|
| | | resDatas = new ArrayList<>(); //内阻数据集
|
| | | }
|
| | |
|
| | | public void readResFile(String filePath)
|
| | | public void readFileData(String filePath)
|
| | | {
|
| | |
|
| | | FileInputStream fis = null;
|
| | |
| | |
|
| | | public static void main(String[] args) {
|
| | | RESDataInfo info = new RESDataInfo();
|
| | | info.readResFile("D:\\桌面文件备份\\公司各种设备资料\\FBS存储文件解析/resdata.bres");
|
| | | info.readFileData("D:\\桌面文件备份\\公司各种设备资料\\FBS存储文件解析/resdata.bres");
|
| | | }
|
| | | |
| | |
|
| | | }
|