[RM] HexDumper - getHexdump(ByteBuf byteBuf)
@@ -18,6 +18,8 @@ package com.exactpro.sf.common.util;
import java.util.ArrayList;
import java.util.List;
+import io.netty.buffer.ByteBuf;
+import io.netty.buffer.ByteBufUtil;
import org.apache.mina.core.buffer.IoBuffer;
public class HexDumper {
@@ -153,4 +155,8 @@ public class HexDumper {
return truncate ? result + "..." : result;
}
+
+ public static String getHexdump(ByteBuf byteBuf){
+ return getHexdump(ByteBufUtil.getBytes(byteBuf));
+ }
}
