public static void exportHexData(PrintWriter out, byte[] data) {
		int i, cnt;
		char ch1, ch2;
		int len = data.length;

		for (i = 0, cnt = 0; i < len; ++i) {
			byte dByte = data[i];

			ch2 = RegistryValue.hexChars[(dByte & 0x0F)];
			ch1 = RegistryValue.hexChars[((dByte >> 4) & 0x0F)];

			if (cnt == 0) out.print("  ");

			out.print(ch1);
			out.print(ch2);

			if (i < (len - 1))
				out.print(",");

			if (++cnt > 15) {
				cnt = 0;
				if (i < (len - 1))
					out.println("\\");
			}
		}

		out.println();
	}