public void setCurrentIndex ( long curr ) { try { if ( curr < 0 || curr > count ) { throw new RuntimeException ( curr + " is not in the range 0 to " + count ) ; } seek ( getHeaderSize ( ) + curr * getEntryLength ( ) ) ; } catch ( IOException e ) { throw new RuntimeException ( e ) ; } }
Set the required current entry index .