src/main/java/org/nutz/ssdb4j/SSDBs.java
public static void sendCmd(OutputStream out, Cmd cmd, byte[] ... vals) throws IOException {
		SSDBs.writeBlock(out, cmd.bytes());
		for (byte[] bs : vals) {
			SSDBs.writeBlock(out, bs);
		}
		out.write('\n');
		out.flush();
	}
public static void sendCmd(OutputStream out, Cmd cmd, byte[] ... vals) throws IOException {
		SSDBs.writeBlock(out, cmd.bytes());
		for (byte[] bs : vals) {
			SSDBs.writeBlock(out, bs);
		}
		out.write('\n');
		out.flush();
	}
public static void sendCmd ( OutputStream out , Cmd cmd , byte [ ] ... vals ) throws IOException { SSDBs . writeBlock ( out , cmd . bytes ( ) ) ; for ( byte [ ] bs : vals ) { SSDBs . writeBlock ( out , bs ) ; } out . write ( ' ' ) ; out . flush ( ) ; }
向输出流发送一个命令及其参数
<p></p><b>如果本方法抛异常,应立即关闭输出流</b>
@param out 输出流
@param cmd 命令类型
@param vals 命令的参数
@throws IOException 常规IO异常
向输出流发送一个命令及其参数 <p > < / p > <b > 如果本方法抛异常 应立即关闭输出流< / b >