List of usage examples for io.netty.buffer UnpooledUnsafeDirectByteBuf toString
@Override
public String toString(Charset charset)
From source file:org.kobeyoung81.socksproxy.DirectClientHandler.java
License:Apache License
@Override public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception { ctx.fireChannelRead(msg);//from w w w . ja v a 2s .c om UnpooledUnsafeDirectByteBuf buffer = (UnpooledUnsafeDirectByteBuf) msg; System.out.println("Content:" + " <<< " + buffer.toString(Charset.defaultCharset())); }