System.out.print("    answ:");
buf.append("    answ:");
    void print(boolean dump) {        System.out.println(toString());        for (Enumeration e = questions.elements() ; e.hasMoreElements() ;) {            System.out.println("    ques:" + e.nextElement());        }        int count=0;        for (Enumeration e = answers.elements() ; e.hasMoreElements() ;count++) {            if (count < numAnswers) {                System.out.print("    answ:");            } else if (count < numAnswers + numAuthorities) {                System.out.print("    auth:");            } else {                System.out.print("    addi:");            }            System.out.println(e.nextElement());        }        if (dump) {            for (int off = 0, len = packet.getLength() ; off < len ; off += 32) {                int n = Math.min(32, len - off);                if (off < 10) {                    System.out.print(' ');                }                if (off < 100) {                    System.out.print(' ');                }                System.out.print(off);                System.out.print(':');                for (int i = 0 ; i < n ; i++) {                    if ((i % 8) == 0) {                        System.out.print(' ');                    }                    System.out.print(Integer.toHexString((data[off + i] & 0xF0) >> 4));                    System.out.print(Integer.toHexString((data[off + i] & 0x0F) >> 0));                }                System.out.println();                System.out.print("    ");                for (int i = 0 ; i < n ; i++) {                    if ((i % 8) == 0) {                        System.out.print(' ');                    }                    System.out.print(' ');                    int ch = data[off + i] & 0xFF;                    System.out.print(((ch > ' ') && (ch < 127)) ? (char)ch : '.');                }                System.out.println();                                // limit message size                if (off+32 >= 256) {                    System.out.println("....");                    break;                }            }        }    }