/** Output a result set in BIO format */
public static void outputAsBIO(OutputStream out, ResultSet results)
{
List<Var> vars = Var.varList(results.getResultVars()) ;
BindingOutputStream bout = new BindingOutputStream(out, vars) ;
for ( ; results.hasNext() ; )
{
Binding b = BindingUtils.asBinding(results.next()) ;
bout.write(b) ;
}
bout.flush() ;
}