Make LoggingHandler.appendHexDump(..) protected for the subclasses

This commit is contained in:
Trustin Lee 2013-12-02 18:48:19 +09:00
parent 5e575daefc
commit 4fcec8b87d

View File

@ -397,7 +397,11 @@ public class LoggingHandler extends ChannelHandlerAdapter {
} }
} }
private static void appendHexDump(StringBuilder dump, ByteBuf buf) { /**
* Appends the prettifies multi-line hexadecimal dump of the specified {@link ByteBuf} to the specified
* {@link StringBuilder}.
*/
protected static void appendHexDump(StringBuilder dump, ByteBuf buf) {
dump.append( dump.append(
NEWLINE + " +-------------------------------------------------+" + NEWLINE + " +-------------------------------------------------+" +
NEWLINE + " | 0 1 2 3 4 5 6 7 8 9 a b c d e f |" + NEWLINE + " | 0 1 2 3 4 5 6 7 8 9 a b c d e f |" +