com.ibm.di.util
Class ScriptUtilities

java.lang.Object
  extended by com.ibm.di.util.ScriptUtilities

public class ScriptUtilities
extends Object


Field Summary
protected static String COPYRIGHT
           
 
Constructor Summary
ScriptUtilities()
           
 
Method Summary
static void includeScript(ScriptEngine se, String files)
           
static String loadFile(String path)
          Reads the contents of a text file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

protected static final String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

ScriptUtilities

public ScriptUtilities()
Method Detail

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