title: How to convert byte array to string by chunks?
body: <p>In case if byte array is large then </p>
  
  <pre><code>byte[] buffer = new byte[size];
  int length = is.read(buffer);
  is.close();
  String content = new String(buffer, "UTF-8");
  </code></pre>
  
  <p>may fail with <code>OutOfMemoryError</code> (likely because of memory fragmentation or lack of free successive bytes)</p>
  
  <p>How to convert <code>byte[]</code> array to <code>String</code> by chunks in Java?</p>