ByteBuffer.put

Relative <i>put</i> method for writing a short value&nbsp;&nbsp;<i>(optional operation)</i>.

<p> 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. </p>

@param value The short value to be written

@return This buffer

@throws BufferOverflowException If there are fewer than two bytes remaining in this buffer

@throws ReadOnlyBufferException If this buffer is read-only

Meta