/** * Sets the position of this buffer. * <p> * If the mark is set and it is greater than the new position, then it is * cleared. * * @param newPosition * the new position, must be not negative and not greater than * limit. * @return this buffer. * @exception IllegalArgumentException * if <code>newPosition</code> is invalid. */ public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }
public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }
/** * Sets the position of this buffer. * <p> * If the mark is set and it is greater than the new position, then it is * cleared. * * @param newPosition * the new position, must be not negative and not greater than * limit. * @return this buffer. * @exception IllegalArgumentException * if <code>newPosition</code> is invalid. */ public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }
/** * Sets the position of this buffer. * <p> * If the mark is set and it is greater than the new position, then it is * cleared. * * @param newPosition * the new position, must be not negative and not greater than * limit. * @return this buffer. * @exception IllegalArgumentException * if <code>newPosition</code> is invalid. */ public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }
/** * Sets the position of this buffer. * <p> * If the mark is set and it is greater than the new position, then it is * cleared. * * @param newPosition * the new position, must be not negative and not greater than * limit. * @return this buffer. * @exception IllegalArgumentException * if <code>newPosition</code> is invalid. */ public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }
/** * Sets the position of this buffer. * <p> * If the mark is set and it is greater than the new position, then it is * cleared. * * @param newPosition * the new position, must be not negative and not greater than * limit. * @return this buffer. * @exception IllegalArgumentException * if <code>newPosition</code> is invalid. */ public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }
/** * Sets the position of this buffer. * <p> * If the mark is set and it is greater than the new position, then it is * cleared. * * @param newPosition * the new position, must be not negative and not greater than * limit. * @return this buffer. * @exception IllegalArgumentException * if <code>newPosition</code> is invalid. */ public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }
/** * Sets the position of this buffer. * <p> * If the mark is set and it is greater than the new position, then it is * cleared. * * @param newPosition * the new position, must be not negative and not greater than * limit. * @return this buffer. * @exception IllegalArgumentException * if <code>newPosition</code> is invalid. */ public final Buffer position(int newPosition) { positionImpl(newPosition); return this; }