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

This commit is contained in:
Trustin Lee 2013-12-02 18:48:19 +09:00
parent 835b4443f3
commit 2e58497160

View File

@ -402,7 +402,11 @@ public class LoggingHandler extends ChannelDuplexHandler {
}
}
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(
NEWLINE + " +-------------------------------------------------+" +
NEWLINE + " | 0 1 2 3 4 5 6 7 8 9 a b c d e f |" +