title: Is it possible to clear ByteArrayOutputStream
body: <p>Let's assume I have the following:</p>
  
  <pre><code>final ByteArrayOutputStream boas = new ByteArrayOutputStream();
  final byte[] sample = {1,2,3,4,5,6,7,8,9,10};
  boas.write(sample);
  </code></pre>
  
  <p>At this point the backing array <code>byte buf[]</code> within <code>boas</code> contains the 10 bytes above (and 22 padding bytes).</p>
  
  <p>If I call reset on <code>boas</code> the <code>count</code> and <code>size</code> and all other factors indicate it's empty but internally <code>byte buf[]</code> remains unchanged and populated.</p>
  
  <p>Is there anyway to truly clear this down without creating an entirely new <code>ByteArrayOutputStream</code>?  </p>
  
  <p>More generally, is there a reason why ByteArrayOutputStream behaves like this rather than emptying the <code>byte[]</code>?</p>