Java Utililty Methods Array Dump

List of utility methods to do Array Dump

Description

The list of methods to do Array Dump are organized into topic(s).

Method

StringdumpString(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;
...
StringdumpString(byte[] data)
dump String
return (data == null) ? "null\n" : dumpString(data, 0, data.length, "");
StringdumpString(byte[] data)
dump String
return (data == null) ? "null\n" : dumpString(data, 0, data.length, "");
StringdumpString(byte[] data)
dump String
return (data == null) ? "null\n" : dumpString(data, 0, data.length, "");
voiddumpTo(byte[] array, int length)
dump To
dumpTo(array, 0, length);
voiddumpUnsetted(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();