You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by st...@apache.org on 2002/08/29 21:22:04 UTC
cvs commit: xml-axis/java/src/javax/xml/transform/stream StreamSource.java
stevel 2002/08/29 12:22:04
Modified: java/src/javax/xml/transform/stream StreamSource.java
Log:
tab to space and braces around if/else
Revision Changes Path
1.2 +11 -9 xml-axis/java/src/javax/xml/transform/stream/StreamSource.java
Index: StreamSource.java
===================================================================
RCS file: /home/cvs/xml-axis/java/src/javax/xml/transform/stream/StreamSource.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- StreamSource.java 9 Jul 2002 19:45:24 -0000 1.1
+++ StreamSource.java 29 Aug 2002 19:22:04 -0000 1.2
@@ -63,7 +63,7 @@
/**
* Acts as an holder for a transformation Source in the form
* of a stream of XML markup.
- *
+ * @author unknown
*/
public class StreamSource implements Source {
@@ -268,14 +268,16 @@
* @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;
+ String fpath=f.getAbsolutePath();
+ if (File.separatorChar != '/') {
+ fpath = fpath.replace(File.separatorChar, '/');
+ }
+ if( fpath.startsWith("/")) {
+ this.systemId = "file://" + fpath;
+ }
+ else {
+ this.systemId = "file:///" + fpath;
+ }
}
//////////////////////////////////////////////////////////////////////