title: How to reuse a ByteArrayInputStream?
body: <p>I have a piece of code that reads some binary data via an <code>InputStream</code> backed by a <code>ByteArrayInputStream</code>, like this</p>
  
  <pre><code>Object do(byte[] arr) {
      InputStream is = new ByteArrayInputStream(arr);
      return conv(is);
  </code></pre>
  
  <p>I would like to avoid constructing new <code>ByteArrayInputStream</code> each call and instead just load the <code>arr</code> parameter into an existing member stream, however I can't find a simple way to do this. Is this or similar behaviour allowed or this against the recommended use of streams?</p>