code: public static String dumpCursorToString(Cursor cursor) {
          StringBuilder sb = new StringBuilder();
          dumpCursor(cursor, sb);
          return sb.toString();
      }
docs: Prints the contents of a Cursor to a String. The position is restored
  after printing.
  
  @param cursor the cursor to print
  @return a String that contains the dumped cursor