@Test public void shouldPrettyPrintHex() { final String contents = "Hello World!\nThis is a test String\nto print out."; final ExpandableArrayBuffer buffer = new ExpandableArrayBuffer(); buffer.putStringAscii(0, contents); final StringBuilder builder = new StringBuilder(); PrintBufferUtil.appendPrettyHexDump(builder, buffer); assertThat(builder.toString(), containsString("0...Hello World!")); }
public static void appendPrettyHexDump(final StringBuilder dump, final DirectBuffer buffer) { appendPrettyHexDump(dump, buffer, 0, buffer.capacity()); }
PrintBufferUtil { public static void appendPrettyHexDump(final StringBuilder dump, final DirectBuffer buffer) { appendPrettyHexDump(dump, buffer, 0, buffer.capacity()); } }
PrintBufferUtil { public static void appendPrettyHexDump(final StringBuilder dump, final DirectBuffer buffer) { appendPrettyHexDump(dump, buffer, 0, buffer.capacity()); } private  PrintBufferUtil(); }
PrintBufferUtil { public static void appendPrettyHexDump(final StringBuilder dump, final DirectBuffer buffer) { appendPrettyHexDump(dump, buffer, 0, buffer.capacity()); } private  PrintBufferUtil(); static String hexDump(final DirectBuffer buffer); static String hexDump(final DirectBuffer buffer, final int fromIndex, final int length); static String hexDump(final byte[] array); static String hexDump(final byte[] array, final int fromIndex, final int length); static String prettyHexDump(final DirectBuffer buffer); static String prettyHexDump(final DirectBuffer buffer, final int offset, final int length); static void appendPrettyHexDump(final StringBuilder dump, final DirectBuffer buffer); static void appendPrettyHexDump(
        final StringBuilder dump, final DirectBuffer buffer, final int offset, final int length); static String byteToHexStringPadded(final int value); }
PrintBufferUtil { public static void appendPrettyHexDump(final StringBuilder dump, final DirectBuffer buffer) { appendPrettyHexDump(dump, buffer, 0, buffer.capacity()); } private  PrintBufferUtil(); static String hexDump(final DirectBuffer buffer); static String hexDump(final DirectBuffer buffer, final int fromIndex, final int length); static String hexDump(final byte[] array); static String hexDump(final byte[] array, final int fromIndex, final int length); static String prettyHexDump(final DirectBuffer buffer); static String prettyHexDump(final DirectBuffer buffer, final int offset, final int length); static void appendPrettyHexDump(final StringBuilder dump, final DirectBuffer buffer); static void appendPrettyHexDump(
        final StringBuilder dump, final DirectBuffer buffer, final int offset, final int length); static String byteToHexStringPadded(final int value);  }