|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jopendocument.util.protocol.Helper
public class Helper
| Constructor Summary | |
|---|---|
Helper()
|
|
| Method Summary | |
|---|---|
static void |
register()
|
static void |
setURLStreamHandlerFactory()
Set the factory to add our
protocols. |
static java.net.URL |
toJarJar(java.net.URL u)
Wrap the passed URL into a jarjar one. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Helper()
| Method Detail |
|---|
public static final void register()
public static final void setURLStreamHandlerFactory()
factory to add our
protocols. This is needed for example in web start when one of our url is embedded into a
library supplied one. E.g. "jar:jarjar:file:/C:/mylibs/Outer.jar^/Inner.jar!/" will cause the
jar Handler to try to create a jarjar URL but its classloader cannot access our classes
(loaded by JNLPClassLoader).
public static final java.net.URL toJarJar(java.net.URL u)
jarjar one. Needed since the jre cannot read files
inside a jar inside a jar.
u - the URL to wrap, e.g. "jar:file:/C:/mylibs/Outer.jar!/Inner.jar".
u references a jar in a jar, e.g.
"jar:jarjar:file:/C:/mylibs/Outer.jar^/Inner.jar!/".
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||