public final ByteBuffer put (byte[] src)

Relative bulk put method  (optional operation).

This method transfers the entire content of the given source byte array into this buffer. An invocation of this method of the form dst.put(a) behaves in exactly the same way as the invocation

     dst.put(a, 0, a.length) 

Parameters:
src     The source array

Returns:  This buffer

Exceptions:
BufferOverflowException     If there is insufficient space in this buffer
ReadOnlyBufferException     If this buffer is read-only