public static void dumpCursor(ICursor cursor,int maxColumnWidth,StringBuilder builder){
  if (cursor == null) {
    builder.append("Cursor is null");
    return;
  }
  String[] columnNames=cursor.getColumnNames();
  for (  String col : columnNames) {
    addColumnToRowBuilder(builder,col,maxColumnWidth);
  }
  builder.append('\n');
  for (int i=0; i < (maxColumnWidth + 1) * columnNames.length; i++) {
    builder.append('=');
  }
  builder.append('\n');
  int position=cursor.getPosition();
  for (cursor.moveToFirst(); !cursor.isAfterLast(); cursor.moveToNext()) {
    dumpCurrentRow(cursor,maxColumnWidth,builder);
    builder.append('\n');
  }
  cursor.moveToPosition(position);
}

public static void dumpCursor ( ICursor cursor , int maxColumnWidth , StringBuilder builder ) { if ( cursor == null ) { builder . append ( "Cursor is null" ) ; return ; } String [ ] columnNames = cursor . getColumnNames ( ) ; for ( String col : columnNames ) { addColumnToRowBuilder ( builder , col , maxColumnWidth ) ; } builder . append ( '\n' ) ; for ( int i = 0 ; i < ( maxColumnWidth + 1 ) * columnNames . length ; i ++ ) { builder . append ( '=' ) ; } builder . append ( '\n' ) ; int position = cursor . getPosition ( ) ; for ( cursor . moveToFirst ( ) ; ! cursor . isAfterLast ( ) ; cursor . moveToNext ( ) ) { dumpCurrentRow ( cursor , maxColumnWidth , builder ) ; builder . append ( '\n' ) ; } cursor . moveToPosition ( position ) ; }
dump the contents of the cursor to the provided builder , formatted in a readable way
