@Override
	public String doDecode(ChannelHandlerContext ctx) {
		ByteBuffer buffer = ctx.getBuffer();
		buffer.mark();
		while (buffer.hasRemaining()) {
			byte a = buffer.get();
			if (a == CR) {
				byte b = buffer.get();
				if (b == LF) {
					return new String(buffer.array(), 0, buffer.position());
				} else if (b == CR) {
					buffer.position(buffer.position() - 1);
				}
			}
		}
		buffer.reset();
		return null;
	}