public enum ClasspathHacker extends java.lang.Enum<ClasspathHacker>
| Modifier and Type | Method and Description |
|---|---|
static void |
addFile(java.io.File f)
Adds a file to the classpath
Example: |
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.
|
static ClasspathHacker |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ClasspathHacker[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static ClasspathHacker[] values()
for (ClasspathHacker c : ClasspathHacker.values()) System.out.println(c);
public static ClasspathHacker valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static void addFile(java.lang.String s)
throws java.io.IOException
ClasspathHacker.addFile("Plugins/MySuperPlugin.jar");
s - A String pointing to the JAR file
to be added to the system class path.java.io.IOException - When the JAR file could not be found or read.public static void addFile(java.io.File f)
throws java.io.IOException
ClasspathHacker.addFile(new File("Plugins/MyAwesomePlugin.jar"));
f - The File to be added to the system class path.java.io.IOException - When the JAR file could not be found or read.public static void addURL(java.net.URL u)
throws java.io.IOException
ClasspathHacker.addURL("");
u - The URL pointing to the content
to be added to the system class path.java.io.IOException - When the JAR URL could not be read.