why am i not able to reuse InputStream?
<pre><code>public static String getTextOf(String xsl) throws Exception {
      DocXHandler docxh1 = new DocXHandler(ACE.getInputFilePath());
      InputStream inputDocumentXMLStream = docxh1.getInputDocumentXMLZERO();
    return new Cache().getXSLOutput(inputDocumentXMLStream, xsl);
}
</code></pre>

<p>The above method will be called more than 100 times with different xsl arguments. Now each time InputStream inputDocumentXMLStream has been assigned value( yeah more than 100 times). As i am trying to refactor this code, in such a way that only one time InputStream will be assigned value.My code became like this now,</p>

<pre><code>  public static String getTextOf(String xsl) throws Exception {
     return new Cache().getXSLOutput(inputDocumentXMLStream, xsl);
   }
</code></pre>

<p>by changing inputDocumentXMLStream as global property. First time i am getting the correct result BUT for the second time i get the below error,</p>

<pre><code>Unexpected end of ZLIB input stream
</code></pre>

<p>so tel me how to read it again?</p>
