List of utility methods to do Array Dump
String | dumpString(byte[] b) converts a byte array to printable characters StringBuilder d = new StringBuilder(b.length * 2); for (byte aB : b) { char c = (char) aB; if (Character.isISOControl(c)) { switch (c) { case '\r': d.append("{CR}"); break; ... |
String | dumpString(byte[] data) dump String return (data == null) ? "null\n" : dumpString(data, 0, data.length, ""); |
String | dumpString(byte[] data) dump String return (data == null) ? "null\n" : dumpString(data, 0, data.length, ""); |
String | dumpString(byte[] data) dump String return (data == null) ? "null\n" : dumpString(data, 0, data.length, ""); |
void | dumpTo(byte[] array, int length) dump To dumpTo(array, 0, length); |
void | dumpUnsetted(byte[] unsetted) dump Unsetted for (byte b : unsetted) { for (int i = 0; i < 8; i++) { if (((1 << i) & b) != 0) { System.out.print("1 "); } else { System.out.print("0 "); System.out.print(" "); System.out.println(); |