Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| J2ME Foundation
PREV NEXT | FRAMES NO FRAMES

## Uses of Class
java.net.URL

Packages that use URL
java.io | Provides for system input and output through data streams, serialization and the file system.
java.lang | Provides classes that are fundamental to the design of the Java programming language.
java.net | Provides the classes for implementing networking applications.
java.security | Provides the classes and interfaces for the security framework.

Uses of URL in java.io

Methods in java.io that return URL
`URL` | `File.toURL()` Converts this abstract pathname into a `file:` URL.

Uses of URL in java.lang

Methods in java.lang that return URL
`URL` | `ClassLoader.getResource(String name)` Finds the resource with the given name.
`protected URL` | `ClassLoader.findResource(String name)` Finds the resource with the given name.
`static URL` | `ClassLoader.getSystemResource(String name)` Find a resource of the specified name from the search path used to load classes.
`URL` | `Class.getResource(String name)` Finds a resource with a given name.

Methods in java.lang with parameters of type URL
`boolean` | `Package.isSealed(URL url)` Returns true if this package is sealed with respect to the specified code source url.
`protected Package` | `ClassLoader.definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase)` Defines a package by name in this ClassLoader.

Uses of URL in java.net

Fields in java.net declared as URL
`protected URL` | `URLConnection.url` The URL represents the remote object on the World Wide Web to which this connection is opened.

Methods in java.net that return URL
`URL[]` | `URLClassLoader.getURLs()` Returns the search path of URLs for loading classes and resources.
`URL` | `URLClassLoader.findResource(String name)` Finds the resource with the specified name on the URL search path.
`URL` | `URLConnection.getURL()` Returns the value of this `URLConnection`'s `URL` field.
`URL` | `JarURLConnection.getJarFileURL()` Returns the URL for the Jar file for this connection.

Methods in java.net with parameters of type URL
`protected void` | `URLClassLoader.addURL(URL url)` Appends the specified URL to the list of URLs to search for classes and resources.
`protected Package` | `URLClassLoader.definePackage(String name, Manifest man, URL url)` Defines a new package by name in this ClassLoader.
`static URLClassLoader` | `URLClassLoader.newInstance(URL[] urls, ClassLoader parent)` Creates a new instance of URLClassLoader for the specified URLs and parent class loader.
`static URLClassLoader` | `URLClassLoader.newInstance(URL[] urls)` Creates a new instance of URLClassLoader for the specified URLs and default parent class loader.
`boolean` | `URL.sameFile(URL other)` Compares two URLs, excluding the "ref" fields.
`protected abstract URLConnection` | `URLStreamHandler.openConnection(URL u)` Opens a connection to the object referenced by the `URL` argument.
`protected void` | `URLStreamHandler.parseURL(URL u, String spec, int start, int limit)` Parses the string representation of a `URL` into a `URL` object.
`protected boolean` | `URLStreamHandler.equals(URL u1, URL u2)` Provides the default equals calculation.
`protected int` | `URLStreamHandler.hashCode(URL u)` Provides the default hash calculation.
`protected boolean` | `URLStreamHandler.sameFile(URL u1, URL u2)` Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path.
`protected InetAddress` | `URLStreamHandler.getHostAddress(URL u)` Get the IP address of our host.
`protected boolean` | `URLStreamHandler.hostsEqual(URL u1, URL u2)` Compares the host components of two URLs.
`protected String` | `URLStreamHandler.toExternalForm(URL u)` Converts a `URL` of a specific protocol to a `String`.
`protected void` | `URLStreamHandler.setURL(URL u, String protocol, String host, int port, String authority, String userInfo, String path, String query, String ref)` Sets the fields of the `URL` argument to the indicated values.

Constructors in java.net with parameters of type URL
`URLClassLoader(URL[] urls, ClassLoader parent)` Constructs a new URLClassLoader for the given URLs.
`URLClassLoader(URL[] urls)` Constructs a new URLClassLoader for the specified URLs using the default delegation parent `ClassLoader`.
`URLClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)` Constructs a new URLClassLoader for the specified URLs, parent class loader, and URLStreamHandlerFactory.
`URLConnection(URL url)` Constructs a URL connection to the specified URL.
`JarURLConnection(URL url)` Creates the new JarURLConnection to the specified URL.
`URL(URL context, String spec)` Creates a URL by parsing the given spec within a specified context.
`URL(URL context, String spec, URLStreamHandler handler)` Creates a URL by parsing the given spec with the specified handler within a specified context.
`HttpURLConnection(URL u)` Constructor for the URLStreamHandler.

Uses of URL in java.security

Methods in java.security that return URL
`URL` | `CodeSource.getLocation()` Returns the location associated with this CodeSource.

Constructors in java.security with parameters of type URL
`CodeSource(URL url, Certificate[] certs)` Constructs a CodeSource and associates it with the specified location and set of certificates.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| J2ME Foundation
PREV NEXT | FRAMES NO FRAMES

Java is a trademark or registred trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road,
Palo, Alto, California, 94303, U.S.A All Rights Reserved. < /font >