public static void dumpCursor ( Cursor cursor , PrintStream stream ) { stream . println ( ">>>>> Dumping cursor " + cursor ) ; if ( cursor != null ) { int startPos = cursor . getPosition ( ) ; cursor . moveToPosition ( - 1 ) ; while ( cursor . moveToNext ( ) ) { dumpCurrentRow ( cursor , stream ) ; } cursor . moveToPosition ( startPos ) ; } stream . println ( "<<<<<" ) ; }
Prints the contents of a Cursor to a PrintSteam . The position is restored after printing .