public void response(EzyPackage pack) { Object bytes = encodeData(pack.getData()); EzyPacket packet = createPacket(bytes, pack); packetQueue.add(packet); }
private EzyPacket createPacket(Object bytes, EzyPackage pack) { EzySimplePacket packet = new EzySimplePacket(); packet.setTransportType(pack.getTransportType()); packet.setData(bytes); return(packet); }