Here you can find the source of dumpBytes(byte[] data)
public static void dumpBytes(byte[] data)
//package com.java2s; //License from project: Open Source License public class Main { public static void dumpBytes(byte[] data) { for (int i = 0; data != null && i < data.length; i++) { if (i % 8 == 0 && i != 0) System.out.println(); if (i % 8 == 0) System.out.printf("%04d:", i); System.out.printf(" %3d", ((int) data[i])); }/*w w w .j a v a 2 s.c om*/ System.out.println(); } }