text: public void seek(long pos) throws IOException{if (pos != FilePointer){long alignedPos = pos & ALIGN_NOT_MASK;filePos = alignedPos - bufferSize;int delta = (int)(pos - alignedPos);if (delta != 0){refill();buffer.position(delta);bufferPos = delta;}else{bufferPos = bufferSize;}}}