|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.uidl.ClassPathHacker
public class ClassPathHacker
Useful class for dynamically changing the classpath, adding classes during runtime.
Constructor Summary | |
---|---|
ClassPathHacker()
|
Method Summary | |
---|---|
static void |
addFile(java.io.File f)
Adds a file to the classpath |
static void |
addFile(java.lang.String s)
Adds a file to the classpath. |
static void |
addURL(java.net.URL u)
Adds the content pointed by the URL to the classpath. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClassPathHacker()
Method Detail |
---|
public static void addFile(java.lang.String s) throws java.io.IOException
s
- a String pointing to the file
java.io.IOException
- if URL can't be openedpublic static void addFile(java.io.File f) throws java.io.IOException
f
- the file to be added
java.io.IOException
- if URL can't be openedpublic static void addURL(java.net.URL u) throws java.io.IOException
u
- the URL pointing to the content to be added
java.io.IOException
- if URL can't be opened
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |