public String dumpAll(Iterator<? extends Object> data){
  StringWriter buffer=new StringWriter();
  dumpAll(data,buffer,null);
  return buffer.toString();
}

public String dumpAll ( Iterator < ? extends Object > data ) { StringWriter buffer = new StringWriter ( ) ; dumpAll ( data , buffer , null ) ; return buffer . toString ( ) ; }
serialize a sequence of java objects into a yaml string .
