Why do StAX readers and writers not close the underlying input source?
<p>According to StAX XMLEventReader, XMLEventWriter, XMLStreamReader, XMLStreamWriter API close() method does not close the uderlying resource. Thus this code</p>

<pre><code>XMLInputFactory xf = XMLInputFactory.newInstance();
XMLStreamReader xr = xf.createXMLStreamReader(new FileInputStream("1.xml"));
...
xr.close();
</code></pre>

<p>which seems safe at first glance results in a resource leak. </p>

<p>Does anybody know a use case when not closing the underlying resource could be useful?</p>
