| | |
| | | * @throws Exception 异常 |
| | | */ |
| | | protected void doParse(byte[] bs, int bsLen, String dataCode, Data data) throws Exception { |
| | | DataV202404 dV1 = (DataV202404)data.getSubData() ; |
| | | DataV202404 dV202404 = (DataV202404)data.getSubData() ; |
| | | DataCd85Vo cdData = new DataCd85Vo(CodeV202404.getCodeName(dataCode)) ; |
| | | dV1.subData = cdData ; |
| | | dV202404.subData = cdData ; |
| | | |
| | | GlParse.parseCd85(bs, cdData) ; |
| | | } |
| | | |
| | | public static void main(String[] args) throws Exception { |
| | | String hex = "695569813714250102011300850200090000000062090200300405007728936450391294344910100625485510100625683907000000000000000000001000000000000000000000100600000000000000000140000090004916"; |
| | | byte[] bs = ByteUtil.hex2Bytes(hex) ; |
| | | Cd_85_Up p = new Cd_85_Up() ; |
| | | Data d = new Data() ; |
| | | DataV202404 subd = new DataV202404() ; |
| | | d.subData = subd ; |
| | | p.doParse(bs, bs.length, "85", d); |
| | | System.out.println(d.toString()); |
| | | } |
| | | |
| | | } |