question: protected List < VideoDTO > extractVideosFromCursor ( Cursor cursor , int offset , int limit ) { List < VideoDTO > videos = new ArrayList < > ( ) ; int count = 0 ; int begin = offset > 0 ? offset : 0 ; if ( cursor . moveToPosition ( begin ) ) { do { VideoDTO video = extractOneVideoFromCursor ( cursor ) ; videos . add ( video ) ; count ++ ; if ( limit > 0 && count > limit ) { break ; } } while ( cursor . moveToNext ( ) ) ; } cursor . close ( ) ; return videos ; }
target:  Extract a list of videoDTO from current cursor with the given offset and limit.