package com.snowcattle.game.common.socket.server;
import io.netty.buffer.ByteBuf;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.string.StringDecoder;
import io.netty.util.CharsetUtil;
import java.util.List;
/**
* Created by jwp on 2017/1/24.
*/
public class ProtoStringDecoder extends StringDecoder {
@Override
protected void decode(ChannelHandlerContext ctx, ByteBuf msg, List<Object> out) throws Exception {
out.add(msg.toString(CharsetUtil.UTF_8));
}
}