- newLimit
- the new limit, must not be negative and not greater than capacity.
Documentation for this section has not yet been entered.
Type Reason Java.Lang.IllegalArgumentException if newLimit is invalid.
Sets the limit of this buffer.
If the current position in the buffer is in excess of newLimit then, on returning from this call, it will have been adjusted to be equivalent to newLimit. If the mark is set and is greater than the new limit, then it is cleared.