public class Handler
extends java.net.URLStreamHandler
This is class allows you to use the njar: URL protocol. It is very similar to it's jar: cusin. The difference being that jars can be nested.
An example of how to use this class is:
URL url = new URL("njar:njar:file:c:/test1.zip^/test2.zip^/hello.txt");
url.openStream();
Please be aware that the njar protocol caches it's jar in temporary storage when connections are opened into them. So for the above example, 2 files would cached a temp files names similar to nested-xxxx.jar
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JAR_SEPARATOR |
private static org.jboss.logging.Logger |
log |
static java.lang.String |
NJAR_SEPARATOR |
static java.lang.String |
PROTOCOL |
protected java.util.Map |
savedJars |
| Constructor and Description |
|---|
Handler() |
| Modifier and Type | Method and Description |
|---|---|
static java.net.URL |
njarToFile(java.net.URL url) |
java.net.URLConnection |
openConnection(java.net.URL url) |
public static final java.lang.String PROTOCOL
public static final java.lang.String NJAR_SEPARATOR
public static final java.lang.String JAR_SEPARATOR
private static final org.jboss.logging.Logger log
protected java.util.Map savedJars