com.partnersoft.v3x.util
Class RuntimeLib

java.lang.Object
  extended by com.partnersoft.v3x.util.RuntimeLib

public class RuntimeLib
extends java.lang.Object

A library with handy routines for handling external execution etc.


Constructor Summary
RuntimeLib()
           
 
Method Summary
static void cleanupMemory()
          Does it's damnedest to clear out memory, both used and available heap.
static void execAndWait(java.lang.String command)
          A wrapper for Runtime.exec() that handles the problems of grabbing the input streams and reading from them, and waits for completion.
static java.lang.Process execNoWait(java.lang.String command)
          A wrapper for Runtime.exec() that handles the problems of grabbing the input streams and reading from them.
static void logOutput(java.lang.Process proc)
          Logs all output from a process; waits for result.
static void tossOutput(java.lang.Process proc)
          Tosses all output from a process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuntimeLib

public RuntimeLib()
Method Detail

cleanupMemory

public static void cleanupMemory()
Does it's damnedest to clear out memory, both used and available heap.


execAndWait

public static void execAndWait(java.lang.String command)
                        throws java.io.IOException
A wrapper for Runtime.exec() that handles the problems of grabbing the input streams and reading from them, and waits for completion.

Throws:
java.io.IOException

execNoWait

public static java.lang.Process execNoWait(java.lang.String command)
                                    throws java.io.IOException
A wrapper for Runtime.exec() that handles the problems of grabbing the input streams and reading from them.

Throws:
java.io.IOException

tossOutput

public static void tossOutput(java.lang.Process proc)
Tosses all output from a process.


logOutput

public static void logOutput(java.lang.Process proc)
Logs all output from a process; waits for result.