private static String byteQuadToString(final int byteQuad) {
        final byte b1 = (byte) (byteQuad >> 24 & 0xff);
        final byte b2 = (byte) (byteQuad >> 16 & 0xff);
        final byte b3 = (byte) (byteQuad >> 8 & 0xff);
        final byte b4 = (byte) (byteQuad >> 0 & 0xff);

        final char c1 = (char) b1;
        final char c2 = (char) b2;
        final char c3 = (char) b3;
        final char c4 = (char) b4;
        // return new String(new char[] { c1, c2, c3, c4 });
        final StringBuilder buffer = new StringBuilder(31);
        buffer.append(new String(new char[] { c1, c2, c3, c4 }));
        buffer.append(" byteQuad: ");
        buffer.append(byteQuad);
        buffer.append(" b1: ");
        buffer.append(b1);
        buffer.append(" b2: ");
        buffer.append(b2);
        buffer.append(" b3: ");
        buffer.append(b3);
        buffer.append(" b4: ");
        buffer.append(b4);

        return buffer.toString();
    }
Internal-only debug class. Used for collecting extra information when parsing or modifying images or metadata. These methods are useful for troubleshooting
and issue analysis, but this should not be used directly by end-users, nor extended in any way. This may change or be removed at any time.
src/main/java/org/apache/commons/imaging/internal/Debug.java