| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static String | canonicalizeString(String file, int off)
Returns a version of the specified string with
canonicalization applied starting from position |
| public String | |
| private static String | |
| protected int | |
| private static int | |
| private static URL | |
| protected URLConnection | openConnection(URL u)
Implements abstract java. Opens a connection to the object referenced by the
|
| private String | |
| private String | |
| protected void | parseURL(URL url, String spec, int start, int limit)
Overrides java. Parses the string representation of a |
| protected boolean |
| separator | back to summary |
|---|---|
| private static final String separator | |
| Handler | back to summary |
|---|---|
| public Handler() | |
| canonicalizeString | back to summary |
|---|---|
| private static String canonicalizeString(String file, int off) Returns a version of the specified string with
canonicalization applied starting from position | |
| checkNestedProtocol | back to summary |
|---|---|
| public String checkNestedProtocol(String spec) | |
| doCanonicalize | back to summary |
|---|---|
| private static String doCanonicalize(String file) | |
| hashCode | back to summary |
|---|---|
| protected int hashCode(URL u) Overrides java. Doc from java. Provides the default hash calculation. May be overridden by handlers for other protocols that have different requirements for hashCode calculation.
| |
| indexOfBangSlash | back to summary |
|---|---|
| private static int indexOfBangSlash(String spec) | |
| newURL | back to summary |
|---|---|
private static URL newURL(String spec) throws MalformedURLException
| |
| openConnection | back to summary |
|---|---|
| protected URLConnection openConnection(URL u) throws IOException Implements abstract java. Doc from java. Opens a connection to the object referenced by the
If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.
| |
| parseAbsoluteSpec | back to summary |
|---|---|
| private String parseAbsoluteSpec(String spec) | |
| parseContextSpec | back to summary |
|---|---|
| private String parseContextSpec(URL url, String spec) | |
| parseURL | back to summary |
|---|---|
| protected void parseURL(URL url, String spec, int start, int limit) Overrides java. Doc from java. Parses the string representation of a
If there is any inherited context, then it has already been
copied into the
The
| |
| sameFile | back to summary |
|---|---|
| protected boolean sameFile(URL u1, URL u2) Overrides java. Compare two jar URLs
| |