org.opt4j.core.config
Class ClassPath

java.lang.Object
  extended by org.opt4j.core.config.ClassPath

public class ClassPath
extends java.lang.Object

The ClassPath is also known as the ClassPathHacker and enables adding new files to the classpath.


Constructor Summary
ClassPath()
           
 
Method Summary
static void addFile(java.io.File f)
          Adds a new File to the classpath.
static void addFile(java.lang.String s)
          Adds a new File to the classpath.
static void addURL(java.net.URL u)
          Adds a new File to the classpath.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassPath

public ClassPath()
Method Detail

addFile

public static void addFile(java.lang.String s)
                    throws java.io.IOException
Adds a new File 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 new File 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 new File to the classpath.

Parameters:
u - the URL of the file
Throws:
java.io.IOException