mrglavas 2004/10/27 23:09:17
Modified: java/src/org/apache/xml/serialize DOMSerializerImpl.java
Log:
Decode %nn escapes in write() as we do for writeToURI().
Revision Changes Path
1.32 +2 -5
xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java
Index: DOMSerializerImpl.java
===================================================================
RCS file:
/home/cvs/xml-xerces/java/src/org/apache/xml/serialize/DOMSerializerImpl.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- DOMSerializerImpl.java 28 Oct 2004 06:06:10 -0000 1.31
+++ DOMSerializerImpl.java 28 Oct 2004 06:09:17 -0000 1.32
@@ -748,10 +748,7 @@
// Use FileOutputStream if this URI is for a local file.
if (protocol.equals("file")
&& (host == null || host.length() == 0 ||
host.equals("localhost"))) {
- // REVISIT: We have to decode %nn sequences. For
- // now files containing spaces and other characters
- // which were escaped in the URI will fail. -- mrglavas
- out = new FileOutputStream(new File(url.getFile()));
+ out = new
FileOutputStream(getPathWithoutEscapes(url.getFile()));
}
// Try to write to some other kind of URI. Some protocols
// won't support this, though HTTP should work.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]