if (debug > 2) { try { DNSIncoming msg = new DNSIncoming(packet); System.out.print("JmDNS out:"); msg.print(debug > 3); System.out.println(); } catch (IOException e) { System.out.println("JmDNS can not parse what it sends!!!"); e.printStackTrace(); throw e; }
try { DNSIncoming msg = new DNSIncoming(packet); logger.finest("send() JmDNS out:" + msg.print(true)); } catch (IOException e) { logger.throwing(getClass().toString(),"send(DNSOutgoing) - JmDNS can not parse what it sends!!!" , e);
    private void send(DNSOutgoing out) throws IOException {        out.finish();        if (! out.isEmpty()) {            DatagramPacket packet = new DatagramPacket(out.data, out.off, group, DNSConstants.MDNS_PORT);                        if (debug > 2) {                try {                    DNSIncoming msg = new DNSIncoming(packet);                    System.out.print("JmDNS out:");                    msg.print(debug > 3);                    System.out.println();                } catch (IOException e) {                    System.out.println("JmDNS can not parse what it sends!!!");                    e.printStackTrace();                    throw e;                }            }                        socket.send(packet);        }    }