/[classpath]/classpath/gnu/java/net/protocol/file/Handler.java
ViewVC logotype

Diff of /classpath/gnu/java/net/protocol/file/Handler.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mark, Fri Oct 18 20:40:50 2002 UTC revision 1.7 by jewel, Thu Dec 5 16:54:14 2002 UTC
# Line 145  parseURL(URL url, String url_string, int Line 145  parseURL(URL url, String url_string, int
145              // If encounter another "/", it's end of a null host part or beginning of root path              // If encounter another "/", it's end of a null host part or beginning of root path
146              if ( url_string.startsWith("/") ){              if ( url_string.startsWith("/") ){
147                  hostpart = false;                  hostpart = false;
148                  url_string = url_string.substring(1);                  // url_string = url_string.substring(1);
149              }              }
150          }          }
151                    
# Line 251  protected String Line 251  protected String
251  toExternalForm(URL url)  toExternalForm(URL url)
252  {  {
253      StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH);      StringBuffer sb = new StringBuffer(PlatformHelper.INITIAL_MAX_PATH);
254      sb.append("file://");      sb.append("file:");
255            
256      String prefix = url.getHost();      String prefix = url.getHost();
257      if(prefix != null && prefix.length() > 0){      if(prefix != null && prefix.length() > 0){

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26