Buffer.position

Sets this buffer's position. If the mark is defined and larger than the new position then it is discarded.

@param newPosition The new position value; must be non-negative and no larger than the current limit

@return This buffer

@throws IllegalArgumentException If the preconditions on <tt>newPosition</tt> do not hold

  1. int position()
  2. Buffer position(int newPosition)
    class Buffer
    final
    position

Meta