home *** CD-ROM | disk | FTP | other *** search
- import java.net.MalformedURLException;
- import java.net.URL;
-
- class ParseURL {
- public static void main(String[] var0) {
- Object var1 = null;
-
- try {
- URL var4 = new URL("http://java.sun.com:80/tutorial/intro.html#DOWNLOADING");
- System.out.println("protocol = " + var4.getProtocol());
- System.out.println("host = " + var4.getHost());
- System.out.println("filename = " + var4.getFile());
- System.out.println("port = " + var4.getPort());
- System.out.println("ref = " + var4.getRef());
- } catch (MalformedURLException var3) {
- System.out.println("MalformedURLException: " + var3);
- }
- }
- }
-