|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLStreamHandler
org.allcolor.yahp.converter.CJarLoaderURLHandler
public class CJarLoaderURLHandler
Handler for jarfile URL
Nested Class Summary | |
---|---|
private class |
CJarLoaderURLHandler.CGCCleaner
This class will clean the preload map entry upon GC |
Field Summary | |
---|---|
private java.net.URL |
file
URL to the jar file |
private java.util.Map |
preload
preload byte class map |
Constructor Summary | |
---|---|
CJarLoaderURLHandler(java.net.URL file)
Creates a new CJarLoaderURLHandler object. |
Method Summary | |
---|---|
void |
addClassPreload(java.lang.String path,
byte[] array)
add a class byte representation in the preload map |
java.net.URL |
getFile()
Return the URL to the jar file |
protected java.net.URLConnection |
openConnection(java.net.URL u)
Open a connection to the requested resource |
Methods inherited from class java.net.URLStreamHandler |
---|
equals, getDefaultPort, getHostAddress, hashCode, hostsEqual, openConnection, parseURL, sameFile, setURL, setURL, toExternalForm |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.net.URL file
private java.util.Map preload
Constructor Detail |
---|
public CJarLoaderURLHandler(java.net.URL file)
file
- URL to a jar fileMethod Detail |
---|
public java.net.URL getFile()
public void addClassPreload(java.lang.String path, byte[] array)
path
- path to the class inside the jararray
- byte representationprotected java.net.URLConnection openConnection(java.net.URL u) throws java.io.IOException
openConnection
in class java.net.URLStreamHandler
u
- The url of the resource
java.io.IOException
- If an error occured while accessing the
resource
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |