question: protected List < ImageDTO > extractImagesFromCursor ( Cursor cursor , int offset , int limit ) { List < ImageDTO > images = new ArrayList < > ( ) ; int count = 0 ; int begin = offset > 0 ? offset : 0 ; if ( cursor . moveToPosition ( begin ) ) { do { ImageDTO image = extractOneImageFromCurrentCursor ( cursor ) ; images . add ( image ) ; count ++ ; if ( limit > 0 && count > limit ) { break ; } } while ( cursor . moveToNext ( ) ) ; } cursor . close ( ) ; return images ; }
target:  Extract a list of imageDTO from current cursor with the given offset and limit.