src/main/java/org/nutz/ssdb4j/SSDBs.java
public static Response readResp(InputStream in) throws IOException {
		Response resp = respFactory.make();
		byte[] data = SSDBs.readBlock(in);
		if (data == null)
			throw new SSDBException("protocol error. unexpect \\n");
		resp.stat = new String(data);
		while (true) {
			data = SSDBs.readBlock(in);
			if (data == null)
				break;
			resp.datas.add(data);
		}
		return resp;
	}
public static Response readResp(InputStream in) throws IOException {
		Response resp = respFactory.make();
		byte[] data = SSDBs.readBlock(in);
		if (data == null)
			throw new SSDBException("protocol error. unexpect \\n");
		resp.stat = new String(data);
		while (true) {
			data = SSDBs.readBlock(in);
			if (data == null)
				break;
			resp.datas.add(data);
		}
		return resp;
	}
从输入流读取一个响应
<p></p><b>如果本方法抛异常,应立即关闭输入流</b>
@param in 输入流
@return ssdb标准响应
@throws IOException 常规IO异常
@throws SSDBException 读取到非预期值的时候抛错协议错误