Java in a Nutshell Online Quick Reference for Java 1.1
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);
}