public void seek(int position){
  int backtrackLength=Math.max(_index - position,0);
  _backtracked+=backtrackLength;
  _index=position;
  checkBacktrackLoop(backtrackLength);
}

public void seek ( int position ) { int backtrackLength = Math . max ( _index - position , 0 ) ; _backtracked += backtrackLength ; _index = position ; checkBacktrackLoop ( backtrackLength ) ; }
moves the index to the specified position .
