public static DataRowReader createDataRowReader(DataRowFactory factory,Attribute[] attributes,String[][] values){
  List<DataRow> dataRows=new LinkedList<DataRow>();
  for (int i=0; i < values.length; i++) {
    dataRows.add(factory.create(values[i],attributes));
  }
  return new ListDataRowReader(dataRows.iterator());
}

public static DataRowReader createDataRowReader ( DataRowFactory factory , Attribute [ ] attributes , String [ ] [ ] values ) { List < DataRow > dataRows = new LinkedList < DataRow > ( ) ; for ( int i = 0 ; i < values . length ; i ++ ) { dataRows . add ( factory . create ( values [ i ] , attributes ) ) ; } return new ListDataRowReader ( dataRows . iterator ( ) ) ; }
returns a datarowreader returning the given values .
