Java in a Nutshell Online Quick Reference for Java 1.1

CLASS java.net.URL

Availability: JDK 1.0

public final class URL extends Object implements Serializable {
   // Public Constructors
      public URL(String protocol, String host, int port, String file) throws MalformedURLException;
      public URL(String protocol, String host, String file) throws MalformedURLException;
      public URL(String spec) throws MalformedURLException;
      public URL(URL context, String spec) throws MalformedURLException;
   // Class Methods
      public static synchronized void setURLStreamHandlerFactory(URLStreamHandlerFactory fac);
   // Public Instance Methods
      public boolean equals(Object obj);  // Overrides Object.equals()
      public final Object getContent() throws IOException;
      public String getFile();
      public String getHost();
      public int getPort();
      public String getProtocol();
      public String getRef();
      public int hashCode();  // Overrides Object.hashCode()
      public URLConnection openConnection() throws IOException;
      public final InputStream openStream() throws IOException;
      public boolean sameFile(URL other);
      public String toExternalForm();
      public String toString();  // Overrides Object.toString()
   // Protected Instance Methods
      protected void set(String protocol, String host, int port, String file, String ref);
}
Passed To:
Applet.getAudioClip(), Applet.getImage(), Applet.play(), AppletContext.getAudioClip(), AppletContext.getImage(), AppletContext.showDocument(), HttpURLConnection.HttpURLConnection(), LoaderHandler.loadClass(), RMIClassLoader.loadClass(), Toolkit.getImage(), URL.sameFile(), URL.URL(), URLConnection.URLConnection(), URLStreamHandler.openConnection(), URLStreamHandler.parseURL(), URLStreamHandler.setURL(), URLStreamHandler.toExternalForm().
Returned By:
Applet.getCodeBase(), Applet.getDocumentBase(), AppletStub.getCodeBase(), AppletStub.getDocumentBase(), Class.getResource(), ClassLoader.getResource(), ClassLoader.getSystemResource(), URLConnection.getURL().
Type Of:
URLConnection.url.

Java in a Nutshell Online Quick Reference for Java 1.1
Created by David Flanagan. Copyright © 1997 by O'Reilly & Associates.