Here you can find the source of dump(byte[] rec)
@SuppressWarnings({ "UnusedDeclaration" }) public static void dump(byte[] rec)
//package com.java2s; // it under the terms of the GNU Lesser General Public License as published by public class Main { @SuppressWarnings({ "UnusedDeclaration" }) public static void dump(byte[] rec) { for (int i = 0; i < rec.length; i++) { String s = String.format("%02x", (0xFF & rec[i])); System.out.print("0x" + s + " "); if (((i + 1) % 16) == 0) System.out.println(); }/*w w w . j a v a 2s.c o m*/ System.out.println(); } }