You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-cvs@xml.apache.org by mr...@apache.org on 2009/10/26 22:03:05 UTC
svn commit: r829961 -
/xml/commons/branches/tck-jaxp-1_2_0/java/external/src/javax/xml/transform/stream/StreamResult.java
Author: mrglavas
Date: Mon Oct 26 21:03:05 2009
New Revision: 829961
URL: http://svn.apache.org/viewvc?rev=829961&view=rev
Log:
Updated File to URI conversion code so that it's consistent with StreamSource.
Modified:
xml/commons/branches/tck-jaxp-1_2_0/java/external/src/javax/xml/transform/stream/StreamResult.java
Modified: xml/commons/branches/tck-jaxp-1_2_0/java/external/src/javax/xml/transform/stream/StreamResult.java
URL: http://svn.apache.org/viewvc/xml/commons/branches/tck-jaxp-1_2_0/java/external/src/javax/xml/transform/stream/StreamResult.java?rev=829961&r1=829960&r2=829961&view=diff
==============================================================================
--- xml/commons/branches/tck-jaxp-1_2_0/java/external/src/javax/xml/transform/stream/StreamResult.java (original)
+++ xml/commons/branches/tck-jaxp-1_2_0/java/external/src/javax/xml/transform/stream/StreamResult.java Mon Oct 26 21:03:05 2009
@@ -150,14 +150,7 @@
* @param f Must a non-null File reference.
*/
public void setSystemId(File f) {
- String fpath=f.getAbsolutePath();
- if (File.separatorChar != '/') {
- fpath = fpath.replace(File.separatorChar, '/');
- }
- if( fpath.startsWith("/"))
- this.systemId= "file://" + fpath;
- else
- this.systemId = "file:///" + fpath;
+ this.systemId = FilePathToURI.filepath2URI(f.getAbsolutePath());
}
/**