Using an InputStream for Logging and then XML parsing
<p>What I want to do is log the output from an inputstream that I go using </p>

<pre><code>org.apache.http.HttpEntity entity = response.getEntity();
org.apache.http.HttpResponse content =entity.getContent();


            //Print the result to the screen for debugging
            //puroposes
            if(Logging.DEBUG) {
                InputStream content =entity.getContent();

                int i;
                StringBuilder b = new StringBuilder();
                while( (i=content.read()) != -1 ) {
                    b.append((char)i);
                }

                Log.d(TAG, b.toString());
            }
</code></pre>

<p>Now after I have finished logging, I want to use the exact same stream through an XML parser.  The problem is that it tells me that the steam has already been used.</p>

<p>I tried to the use <code>mark()</code> and <code>reset()</code> calls before and after debugging but it didn't work.</p>
