code: public synchronized void seek(long position) throws IOException {
      if (position < 0 || position >= count) {
        throw new IOException("cannot seek position " + position + " as it is out of bounds");
      }
      pos = (int) position;
    }
docs: Seeks and sets position to the specified value.
  
  @throws IOException if position is negative or exceeds the buffer size
  
  {@inheritDoc}