private void seekToOffset(long offset) throws IOException {
  if (randomAccessFile.getFilePointer() != offset) {
    randomAccessFile.seek(offset);
  }
}

private void seekToOffset ( long offset ) throws IOException { if ( randomAccessFile . getFilePointer ( ) != offset ) { randomAccessFile . seek ( offset ) ; } }
seeks to the given offset .
