use of org.adbcj.support.DecoderInputStream in project adbcj by mheath.
the class Encoder method decode.
@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();
}
}
Aggregations