DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18458>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=18458

Using an InputStream with "getAssociatedStylesheet()" causes IOException





------- Additional Comments From [EMAIL PROTECTED]  2003-06-06 12:37 -------
Since these issues are typically found to be in the parser, I will simply 
reference the JavaDoc for the SAX InputSource class, which states:

"An InputSource object belongs to the application: the SAX parser shall never 
modify it in any way (it may modify a copy if necessary). However, standard 
processing of both byte and character streams is to close them on as part of 
end-of-parse cleanup, so applications should not attempt to re-use such streams 
after they have been handed to a parser."

This statement applies equally to any other processing service that *consumes* 
the contents of a stream.  It is the obligation of the caller of such services 
that they wrap the *real* stream with a surrogate that does not close the real 
stream when it is closed if that behavior is required.  Otherwise, you cannot 
expect streams to remain open when their contents have been exhausted unless 
you have an explicit guarantee to the contrary.  You will not generally get 
such a guarantee from XML services.

Reply via email to