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

*** shadow/1670 Wed Jun 13 12:19:25 2001
--- shadow/1670.tmp.19308       Thu Jun 14 07:16:57 2001
***************
*** 53,55 ****
--- 53,81 ----
  
  Maybe someone knows a way to release the file is I use the first StreamSource 
  constructor.
+ 
+ ------- Additional Comments From [EMAIL PROTECTED]  2001-06-14 07:16 -------
+ This seems to be because when you construct the StreamSource from a File it calls 
+ setSystemId().
+ 
+ If you call this yourself you want to use a FileInputStream
+ 
+ Extracts from the JavaDoc for StreamSource:
+ 
+ If this Source object is used to process a stylesheet, normally
+      * setSystemId should also be called, so that relative URL references
+      * can be resolved.
+ 
+     /**
+      * Set the system identifier for this Source.
+      *
+      * <p>The system identifier is optional if there is a byte stream
+      * or a character stream, but it is still useful to provide one,
+      * since the application can use it to resolve relative URIs
+      * and can include it in error messages and warnings (the parser
+      * will attempt to open a connection to the URI only if
+      * there is no byte stream or character stream specified).</p>
+      *
+      * @param systemId The system identifier as a URL string.
+      */
+     public void setSystemId(String systemId) {

Reply via email to