URLs
- Uniform Resource Locator
- http://cubist.cs.washington.edu/~john/d.lsp?q=hello
- ftp://ftp.cs.washington.edu/pub/myprog.tar
- class URL
URL u; String mydoc;
try {
u = new URL("http://www.dom.com/x.html");
}
catch (MalformedURLException e) {
system.out.println("MalformedURLException for " +
filename); return;
}
try {
mydoc = (String) u.getContent();
}
catch (IOException e) {}