Package org.opt4j.core.config
Class ClassPath
- java.lang.Object
-
- org.opt4j.core.config.ClassPath
-
public class ClassPath extends java.lang.Object
TheClassPath
is also known as theClassPathHacker
and enables adding new files to the classpath.
-
-
Constructor Summary
Constructors Constructor Description ClassPath()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
addFile(java.io.File f)
Adds a newFile
to the classpath.static void
addFile(java.lang.String s)
Adds a newFile
to the classpath.static void
addURL(java.net.URL u)
Adds a newFile
to the classpath.
-
-
-
Method Detail
-
addFile
public static void addFile(java.lang.String s) throws java.io.IOException
Adds a newFile
to the classpath.- Parameters:
s
- the name of the file- Throws:
java.io.IOException
-
addFile
public static void addFile(java.io.File f) throws java.io.IOException
Adds a newFile
to the classpath.- Parameters:
f
- the file- Throws:
java.io.IOException
-
addURL
public static void addURL(java.net.URL u) throws java.io.IOException
Adds a newFile
to the classpath.- Parameters:
u
- theURL
of the file- Throws:
java.io.IOException
-
-