public Object parser(LesenRPCResult result) { String type = result.getType(); ParamEncodeDecode objectEncodeDecode = decodeEncodes.get(type); byte[] byteArray = result.getValue().toByteArray(); return objectEncodeDecode.decode(byteArray); }
public void registDecodeEncode(ParamEncodeDecode encodeDecode) { decodeEncodes.put(encodeDecode.getTypeName(), encodeDecode); }