title: How to make a deep copy of an InputStream in Java
body: <p>I would like to know how to make a deep copy of an <code>InputStream</code>.</p>
  
  <p>I know that it can be done with IOUtils packages, but I would like to avoid them if possible.
  Does anyone know an alternate way?</p>