Class ProcessUtils

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

public class ProcessUtils extends Object
Class to run an external process.
Version:
$Date$ $Revision$
Author:
stack
  • Constructor Details

    • ProcessUtils

      protected ProcessUtils()
  • Method Details

    • exec

      public static ProcessUtils.ProcessResult exec(String[] args) throws IOException
      Runs process.
      Parameters:
      args - List of process args.
      Returns:
      A ProcessResult data structure.
      Throws:
      IOException - If interrupted, we throw an IOException. If non-zero exit code, we throw an IOException (This may need to change).