@Deprecated public URL toURL() throws java.net.MalformedURLException {
  String name=getAbsoluteName();
  if (!name.startsWith("/")) {
    return new URL("file","",-1,"/" + name,null);
  }
 else   if (name.startsWith("//")) {
    return new URL("file:" + name);
  }
  return new URL("file","",-1,name,null);
}

@ Deprecated public URL toURL ( ) throws java . net . MalformedURLException { String name = getAbsoluteName ( ) ; if ( ! name . startsWith ( "/" ) ) { return new URL ( "file" , "" , - 1 , "/" + name , null ) ; } else if ( name . startsWith ( "//" ) ) { return new URL ( "file:" + name ) ; } return new URL ( "file" , "" , - 1 , name , null ) ; }
returns a uniform resource locator for this file . the url is system dependent and may not be transferable between different operating / file systems .
