code: public static void dump(PrintStream out, byte[] b, int off, int len) {
  		int end = off + len;
  		int offDiv16 = off / 16;
  		int endDiv16 = end / 16;
  		if (offDiv16 == endDiv16) {
  			out.println(dumpLine(b, offDiv16, off % 16, end % 16));
  		} else {
  			out.println(dumpLine(b, offDiv16, off % 16, 16));
  			for (int i = offDiv16 + 1; i < endDiv16; i ++) {
  				out.println(dumpLine(b, i, 0, 16));
  			}
  			if (end % 16 > 0) {
  				out.println(dumpLine(b, endDiv16, 0, end % 16));
  			}
  		}
  	}
docs: Dump a byte array into a {@link PrintStream} in human readable format