org.archive.util
Class ProcessUtils

java.lang.Object
  extended by org.archive.util.ProcessUtils

public class ProcessUtils
extends java.lang.Object

Class to run an external process.

Version:
$Date: 2006-05-02 02:54:20 +0000 (Tue, 02 May 2006) $ $Revision: 4223 $
Author:
stack

Nested Class Summary
 class ProcessUtils.ProcessResult
          Data structure to hold result of a process exec.
protected  class ProcessUtils.StreamGobbler
          Thread to gobble up an output stream.
 
Constructor Summary
protected ProcessUtils()
           
 
Method Summary
static ProcessUtils.ProcessResult exec(java.lang.String[] args)
          Runs process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessUtils

protected ProcessUtils()
Method Detail

exec

public static ProcessUtils.ProcessResult exec(java.lang.String[] args)
                                       throws java.io.IOException
Runs process.

Parameters:
args - List of process args.
Returns:
A ProcessResult data structure.
Throws:
java.io.IOException - If interrupted, we throw an IOException. If non-zero exit code, we throw an IOException (This may need to change).


Copyright © 2003-2011 Internet Archive. All Rights Reserved.