Here you can find the source of dumpArray(byte b[])
public static String dumpArray(byte b[])
//package com.java2s; //License from project: Open Source License public class Main { public static String dumpArray(byte b[]) { return dumpArray(b, 0, b.length); }/* w w w. j a v a2 s .c om*/ public static String dumpArray(byte b[], int pos, int len) { StringBuilder sb = new StringBuilder(); sb.append('['); for (int i = pos; i < len; i++) { if (i > 0) sb.append(","); sb.append(b[i]); } sb.append(']'); return sb.toString(); } }