Method toURL()
Return type: java.net.URL
Member of: java.io.File
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 return f.toURL().toString();
2 String uri = canonical.toURL().toString();
3 setLayout(file.toURL());
4 return getImage(file.toURL());
5 path = new File(path).toURL().toString();
6 String dir = myCompFile.toURL().toString().substring(0, myCompFile.toURL().toString().lastIndexOf("/"));
7 Image reference = Toolkit.getDefaultToolkit().createImage(new URL("jar:" + satJar.toURL() + "!/sfs_attr_test/main.gif"));
8 editor.setPage(file.toURL());
9 this.addURL(file.getCanonicalFile().toURL());
10 isource.setSystemId(pFile.toURL().toString());
11 dbf.setAttribute(JAXP_SCHEMA_SOURCE, f.toURL().toExternalForm());
12 return of.toURL().toExternalForm();
13 URL url = jarFile.toURL();
14 Server server = new Server(file.toURL());
15 result = new File(location).toURL();
16 urls[i] = ((File)(_elements.elementAt(i))).toURL();
17 this.setParentURL(f.getAbsoluteFile().getParentFile().toURL());
18 Applet.newAudioClip(f.toURL()).play();
19 appendPathElement(new File(s).getCanonicalFile().toURL());
20 url = new URL("jar:"+file.toURL()+"!/cdox/images/cdoxhelp.jpg");
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.