public class Handler
extends java.net.URLStreamHandler
限定符和类型 | 方法和说明 |
---|---|
JarFile |
getRootJarFileFromUrl(java.net.URL url) |
protected int |
hashCode(java.net.URL u) |
protected java.net.URLConnection |
openConnection(java.net.URL url) |
protected void |
parseURL(java.net.URL context,
java.lang.String spec,
int start,
int limit) |
protected boolean |
sameFile(java.net.URL u1,
java.net.URL u2) |
static void |
setUseFastConnectionExceptions(boolean useFastConnectionExceptions)
Set if a generic static exception can be thrown when a URL cannot be connected.
|
public Handler()
public Handler(JarFile jarFile)
protected java.net.URLConnection openConnection(java.net.URL url) throws java.io.IOException
openConnection
在类中 java.net.URLStreamHandler
java.io.IOException
protected void parseURL(java.net.URL context, java.lang.String spec, int start, int limit)
parseURL
在类中 java.net.URLStreamHandler
protected int hashCode(java.net.URL u)
hashCode
在类中 java.net.URLStreamHandler
protected boolean sameFile(java.net.URL u1, java.net.URL u2)
sameFile
在类中 java.net.URLStreamHandler
public JarFile getRootJarFileFromUrl(java.net.URL url) throws java.io.IOException
java.io.IOException
public static void setUseFastConnectionExceptions(boolean useFastConnectionExceptions)
useFastConnectionExceptions
- if fast connection exceptions can be used.