|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV NEXT | ||||||||
Uses of Class
java.net.URL
| Uses of URL in java.net |
| Fields in java.net declared as URL | |
private URL |
JarURLConnection.jarFileURL
This is the actual URL that points the remote jar file. |
protected URL |
URLConnection.url
This is the URL associated with this connection |
(package private) URL |
URLClassLoader.URLLoader.baseURL
The base URL from which all resources are loaded. |
(package private) URL |
URLClassLoader.JarURLLoader.baseJarURL
|
private URL |
URLClassLoader.RemoteResource.url
|
| Methods in java.net that return URL | |
URL |
JarURLConnection.getJarFileURL()
This method returns the "real" URL where the JarFile is located. |
URL |
URLConnection.getURL()
Returns the URL object associated with this connection |
URL |
URLClassLoader.findResource(java.lang.String resourceName)
Finds the first occurrence of a resource that can be found. |
URL[] |
URLClassLoader.getURLs()
Returns all the locations that this class loader currently uses the resolve classes and resource. |
(package private) abstract URL |
URLClassLoader.Resource.getURL()
Return a URL that can be used to access this resource. |
(package private) URL |
URLClassLoader.JarURLResource.getURL()
|
URL |
URLClassLoader.RemoteResource.getURL()
|
URL |
URLClassLoader.FileResource.getURL()
|
URL |
URI.toURL()
Creates an URL from an URI |
| Methods in java.net with parameters of type URL | |
protected abstract URLConnection |
URLStreamHandler.openConnection(URL url)
Returns a URLConnection for the passed in URL. |
protected void |
URLStreamHandler.parseURL(URL url,
java.lang.String spec,
int start,
int end)
This method parses the string passed in as a URL and set's the instance data fields in the URL object passed in to the various values parsed out of the string. |
protected boolean |
URLStreamHandler.sameFile(URL url1,
URL url2)
Compares two URLs, excluding the fragment component |
protected void |
URLStreamHandler.setURL(URL u,
java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String file,
java.lang.String ref)
Deprecated. 1.2 Please use #setURL(URL,String,String,int,String,String,String,String); |
protected void |
URLStreamHandler.setURL(URL u,
java.lang.String protocol,
java.lang.String host,
int port,
java.lang.String authority,
java.lang.String userInfo,
java.lang.String path,
java.lang.String query,
java.lang.String ref)
Sets the fields of the URL argument to the indicated values |
protected boolean |
URLStreamHandler.equals(URL url1,
URL url2)
Provides the default equals calculation. |
protected boolean |
URLStreamHandler.hostsEqual(URL url1,
URL url2)
Compares the host components of two URLs. |
protected InetAddress |
URLStreamHandler.getHostAddress(URL url)
Get the IP address of our host. |
protected int |
URLStreamHandler.hashCode(URL url)
Provides the default hash calculation. |
protected java.lang.String |
URLStreamHandler.toExternalForm(URL url)
This method converts a URL object into a String. |
boolean |
URL.sameFile(URL url)
Tests whether or not another URL refers to the same "file" as this one. |
protected void |
URLClassLoader.addURL(URL newUrl)
Adds a new location to the end of the internal URL store. |
private void |
URLClassLoader.addURLImpl(URL newUrl)
|
private void |
URLClassLoader.addURLs(URL[] newUrls)
Adds an array of new locations to the end of the internal URL store. |
protected java.lang.Package |
URLClassLoader.definePackage(java.lang.String name,
java.util.jar.Manifest manifest,
URL url)
Defines a Package based on the given name and the supplied manifest information. |
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls)
Creates a new instance of a URLClassLoader that gets
classes from the supplied URLs. |
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls,
java.lang.ClassLoader parent)
Creates a new instance of a URLClassLoader that gets
classes from the supplied URLs and with the supplied
loader as parent class loader. |
| Constructors in java.net with parameters of type URL | |
HttpURLConnection(URL url)
Create an HttpURLConnection for the specified URL |
|
JarURLConnection(URL url)
Creates a JarURLConnection from an URL object |
|
URLConnection(URL url)
Creates a URL connection to a given URL. |
|
URL(URL context,
java.lang.String spec)
This method parses a String representation of a URL within the context of an existing URL. |
|
URL(URL context,
java.lang.String spec,
URLStreamHandler ph)
Creates an URL from given arguments This method parses a String representation of a URL within the context of an existing URL. |
|
URLClassLoader(URL[] urls)
Creates a URLClassLoader that gets classes from the supplied URLs. |
|
URLClassLoader(URL[] urls,
java.lang.ClassLoader parent)
Creates a URLClassLoader that gets classes from the supplied
URLs. |
|
URLClassLoader(URL[] urls,
java.lang.ClassLoader parent,
URLStreamHandlerFactory factory)
Creates a URLClassLoader that gets classes from the supplied URLs. |
|
URLClassLoader.URLLoader(URLClassLoader classloader,
URL baseURL)
|
|
URLClassLoader.URLLoader(URLClassLoader classloader,
URL baseURL,
URL overrideURL)
|
|
URLClassLoader.JarURLLoader(URLClassLoader classloader,
URL baseURL)
|
|
URLClassLoader.RemoteURLLoader(URLClassLoader classloader,
URL url)
|
|
URLClassLoader.RemoteResource(URLClassLoader.RemoteURLLoader loader,
java.lang.String name,
URL url,
java.io.InputStream stream,
int length)
|
|
URLClassLoader.FileURLLoader(URLClassLoader classloader,
URL url)
|
|
|
|||||||||
| Home >> All >> java >> [ net overview ] | PREV NEXT | ||||||||