}
@Override
protected Object decode(ChannelHandlerContext ctx, Channel channel, ChannelBuffer buffer) throws Exception {
InputStream in = new ChannelBufferInputStream(buffer);
DecoderInputStream dis = new DecoderInputStream(in);
try {
return decoder.decode(dis, false);
} finally {
dis.close();
}
}