Any know of a ByteArrayOutputStream that includes a InputStream getter?
<p>Many times after filling up a ByteArrayOutputStream with bytes and then create an InputStream. However it seems a bit dumb that to do all that copying. Ideally once the InputStream getter is called a flag should be set in the ByteArrayOutputStream so writes will fail.</p>
