putShort

Relative put method for writing a short value  (optional operation).

Writes two bytes containing the given short value, in the current byte order, into this buffer at the current position, and then increments the position by two.

Return

This buffer

Parameters

value

The short value to be written

Throws

If there are fewer than two bytes remaining in this buffer

If this buffer is read-only