};
}
public ProtocolDecoder getDecoder() throws Exception {
return new CumulativeProtocolDecoder() {
protected boolean doDecode(IoSession session, ByteBuffer in, ProtocolDecoderOutput out) throws Exception {
if (in.remaining() > 0) {
byte[] buf = MinaConverter.toByteArray(in);
out.write(new String(buf, "US-ASCII"));
return true;