code: public ByteBuffer putInt (int value) {
        int newPosition = position + 4;
  //if (newPosition > limit) {
  //throw new BufferOverflowException();
  //}
        putInt(position, value);
        position = newPosition;
        return this;
      }
docs: Writes the given int to the current position and increases the position by 4.
  <p>
  The int is converted to bytes using the current byte order.
  </p>
  
  @param value the int to write.
  @return this buffer.
  @exception BufferOverflowException if position is greater than {@code limit - 4}.
  @exception ReadOnlyBufferException if no changes may be made to the contents of this buffer.