title: CharBuffer vs. char[]
body: <p>Is there any reason to prefer a <code>CharBuffer</code> to a <code>char[]</code> in the following:</p>
  
  <pre><code>CharBuffer buf = CharBuffer.allocate(DEFAULT_BUFFER_SIZE);
  while( in.read(buf) &gt;= 0 ) {
    out.append( buf.flip() );
    buf.clear();
  }
  </code></pre>
  
  <p>vs.</p>
  
  <pre><code>char[] buf = new char[DEFAULT_BUFFER_SIZE];
  int n;
  while( (n = in.read(buf)) &gt;= 0 ) {
    out.write( buf, 0, n );
  }
  </code></pre>
  
  <p>(where <code>in</code> is a <code>Reader</code> and <code>out</code> in a <code>Writer</code>)?</p>