title: InputStream reading
body: <p>Good night in my timezone.</p>
  
  <p>I am building an http bot, and when i receive the response from the server i want to make two things.First is to print the body of the response and because i know that the body of the response is of the type TEXT/HTML the second thing that i make is to parse the response through a html parser(in this specific case NekoHtml).
  Snippet of code :</p>
  
  <pre><code>    //Print the first call
      printResponse(urlConnection.getInputStream());
      document = new InputSource(urlConnection.getInputStream());
      parser.setDocument(document);
  </code></pre>
  
  <p>The problem is when i run the first line (printResponse) the second line will throw an exception.
  Now the questions-> This happens because the InputStream can only be read one time ?every time that we read from the inputstream the bytes are cleaned?
  How can we read more that one time the content from the inputstream ?</p>
  
  <p>Thanks in advance </p>
  
  <p>Best regards  </p>