xml-commons-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From il...@apache.org
Subject cvs commit: xml-commons/java/external/src/javax/xml/transform/stream FilePathToURI.java StreamSource.java
Date Thu, 02 Jan 2003 20:05:20 GMT
ilene       2003/01/02 12:05:20

  Modified:    java/external/src/javax/xml/transform/stream Tag:
                        tck-jaxp-1_2_0 StreamSource.java
  Added:       java/external/src/javax/xml/transform/stream Tag:
                        tck-jaxp-1_2_0 FilePathToURI.java
  Log:
  Updated filename-URI conversion code to be consistent with what's in
  the parser package.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.3.8.1   +9 -8      xml-commons/java/external/src/javax/xml/transform/stream/StreamSource.java
  
  Index: StreamSource.java
  ===================================================================
  RCS file: /home/cvs/xml-commons/java/external/src/javax/xml/transform/stream/StreamSource.java,v
  retrieving revision 1.3
  retrieving revision 1.3.8.1
  diff -u -r1.3 -r1.3.8.1
  --- StreamSource.java	28 Jun 2001 23:12:32 -0000	1.3
  +++ StreamSource.java	2 Jan 2003 20:05:20 -0000	1.3.8.1
  @@ -268,14 +268,15 @@
        * @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());
  +//	String fpath=f.getAbsolutePath();
  +//	if (File.separatorChar != '/') {
  +//	    fpath = fpath.replace(File.separatorChar, '/');
  +//	}
  +//        if( fpath.startsWith("/"))
  +//	  this.systemId= "file://" + fpath;
  +//	else
  +//	  this.systemId = "file:///" + fpath;
       }
   
       //////////////////////////////////////////////////////////////////////
  
  
  
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.1   +169 -0    xml-commons/java/external/src/javax/xml/transform/stream/Attic/FilePathToURI.java
  
  
  
  

Mime
View raw message