public void seek ( final int position ) throws IOException { if ( position < 0 ) { throw new IllegalArgumentException ( "position < 0: " + position ) ; } if ( position > size ) { throw new EOFException ( ) ; } this . pointer = position ; }
Sets the file - pointer offset measured from the beginning of this file at which the next read or write occurs .