title: transferring bytes from one ByteBuffer to another
body: <p>What's the most efficient way to put as many bytes as possible from a ByteBuffer <code>bbuf_src</code> into another ByteBuffer <code>bbuf_dest</code> (as well as know how many bytes were transferred)? I'm trying <code>bbuf_dest.put(bbuf_src)</code> but it seems to want to throw a BufferOverflowException and I can't get the javadocs from Sun right now (network problems) when I need them. >:(  argh.</p>
  
  <hr>
  
  <p>edit: darnit, @Richard's approach (use put() from the backing array of <code>bbuf_src</code>) won't work if bbuf_src is a ReadOnly buffer, as you can't get access to that array. What can I do in that case???</p>