Package | Description |
---|---|
java.io | |
java.lang | |
java.net | |
java.rmi.server | |
java.security |
Modifier and Type | Method and Description |
---|---|
URL |
File.toURL() |
Modifier and Type | Method and Description |
---|---|
protected URL |
ClassLoader.findResource(String resname)
findResource returns null: real resource-aware ClassLoaders
override this method.
|
URL |
Class.getResource(String name)
As getResourceAsStream(String), but returns a URL instead of an InputStream.
|
URL |
ClassLoader.getResource(String resname)
getResource retrieves the named resource using "responsible
delegation", rather like loadClass (except that there is no
equivalent to "findLoadedClass").
|
static URL |
ClassLoader.getSystemResource(String resname)
Get a resource using the system class loader.
|
Modifier and Type | Method and Description |
---|---|
protected Package |
ClassLoader.definePackage(String pkgname,
String spectitle,
String specversion,
String specvendor,
String impltitle,
String implversion,
String implvendor,
URL sealbase)
Define a package by name.
|
boolean |
Package.isSealed(URL sealer)
Returns true iff this package is sealed with the given URL.
|
Modifier and Type | Field and Description |
---|---|
protected URL |
URLConnection.url
The URL which represents the remote target of this
URLConnection . |
Modifier and Type | Method and Description |
---|---|
URL |
URLClassLoader.findResource(String name) |
URL |
JarURLConnection.getJarFileURL()
Return the URL for the underlying JarFile.
|
URL |
URLConnection.getURL()
Gets the URL represented by this
URLConnection . |
URL[] |
URLClassLoader.getURLs()
returns a clone of the original URL array (for securiry reasons).
|
URL |
URI.toURL() |
Modifier and Type | Method and Description |
---|---|
protected void |
URLClassLoader.addURL(URL url) |
protected Package |
URLClassLoader.definePackage(String pname,
Manifest man,
URL url) |
protected boolean |
URLStreamHandler.equals(URL url1,
URL url2)
Compares two URL objects whether they represent the same URL.
|
protected InetAddress |
URLStreamHandler.getHostAddress(URL url)
Returns the host address of the given URL.
|
protected int |
URLStreamHandler.hashCode(URL url)
Returns the hashcode value for the given URL object.
|
protected boolean |
URLStreamHandler.hostsEqual(URL url1,
URL url2)
Compares two URL objects whether they refer to the same host.
|
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls) |
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls,
ClassLoader parent) |
protected abstract URLConnection |
URLStreamHandler.openConnection(URL u)
Establishes a new connection to the resource specified by the URL
u . |
protected void |
URLStreamHandler.parseURL(URL u,
String str,
int start,
int end)
Parses the clear text URL in
str into a URL object. |
boolean |
URL.sameFile(URL otherURL)
Returns whether this URL refers to the same resource as the given
argument
otherURL . |
protected boolean |
URLStreamHandler.sameFile(URL url1,
URL url2)
Compares two URL objects whether they refer to the same file.
|
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String file,
String ref)
Deprecated.
use setURL(URL, String String, int, String, String, String,
String, String) instead.
|
protected void |
URLStreamHandler.setURL(URL u,
String protocol,
String host,
int port,
String authority,
String userInfo,
String file,
String query,
String ref)
Sets the fields of the URL
u to the values of the supplied
arguments. |
protected String |
URLStreamHandler.toExternalForm(URL url)
Returns the clear text representation of a given URL using HTTP format.
|
Constructor and Description |
---|
HttpURLConnection(URL url)
Constructs a new
HttpURLConnection instance pointing to the
resource specified by the url . |
JarURLConnection(URL url)
Constructor to be used by subclasses to initialize this JarURLConnection.
|
URL(URL context,
String spec)
Creates a new URL to the specified resource
spec . |
URL(URL context,
String spec,
URLStreamHandler handler)
Creates a new URL to the specified resource
spec . |
URLClassLoader(URL[] urls) |
URLClassLoader(URL[] urls,
ClassLoader parent) |
URLClassLoader(URL[] urls,
ClassLoader parent,
URLStreamHandlerFactory factory) |
URLConnection(URL url)
Creates a new
URLConnection instance pointing to the resource
specified by the given URL. |
Modifier and Type | Method and Description |
---|---|
Class |
LoaderHandler.loadClass(URL codebase,
String name) |
static Class |
RMIClassLoader.loadClass(URL codebase,
String name) |
Modifier and Type | Method and Description |
---|---|
URL |
CodeSource.getLocation()
Returns the location of this
CodeSource . |
Constructor and Description |
---|
CodeSource(URL location,
Certificate[] certs)
Constructs a new instance of
CodeSource with the specified
URL and the Certificate s. |