com.ibm.di.util
Class ScriptUtilities
java.lang.Object
com.ibm.di.util.ScriptUtilities
public class ScriptUtilities
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScriptUtilities
public ScriptUtilities()
includeScript
public static void includeScript(ScriptEngine se,
String files)
throws Exception
- Throws:
Exception
loadFile
public static String loadFile(String path)
throws Exception
- Reads the contents of a text file.
- Parameters:
path
- the URL of the file
- Returns:
- the contents of the file
- Throws:
Exception
- problem while reading the file