title: ByteBuffer to String in Java
body: <p>I have this line of code</p>
  
  <pre><code>String s = new String(m_buffer.array());
  </code></pre>
  
  <p>where buffer is a ByteBuffer. </p>
  
  <p>Is there a way to convert a bytebuffer to string without allocating a new String and/or involve copying of array of char? (ie, is there a way to just point the String's char[] value to the ByteBuffer's byte[] hb safely?)</p>
  
  <p>Thanks</p>