Implemented ReplayingDecoderBuffer.toString() properly

This commit is contained in:
Trustin Lee 2009-03-16 05:38:13 +00:00
parent 7a1963249d
commit 279bd7f0b9

View File

@ -463,7 +463,13 @@ class ReplayingDecoderBuffer implements ChannelBuffer {
@Override
public String toString() {
return buffer.toString();
return getClass().getSimpleName() + '(' +
"ridx=" +
readerIndex() +
", " +
"widx=" +
writerIndex() +
')';
}
public boolean writable() {