# Class: com.pnfsoftware.jeb.util.concurrent.ProcessWrapper

Safe wrapper around [ProcessBuilder](ProcessBuilder) and [Process](Process).

## Constructor: ProcessWrapper
- parameter: `cmdarray`, type: `java.lang.String[]`

Description: Execute a process without timeout.
parameter: cmdarray: command

## Constructor: ProcessWrapper
- parameter: `timeout`, type: `long`
- parameter: `cmdarray`, type: `java.lang.String[]`

Description: Execute a process with timeout.
parameter: timeout: timeout in milliseconds.
parameter: cmdarray: command

## Method: getProcessError
- return type: `java.io.InputStream`


## Method: getProcessInput
- return type: `java.io.OutputStream`


## Method: getProcessOutput
- return type: `java.io.InputStream`


## Method: getReturnCode
- return type: `java.lang.Integer`


## Method: isAlive
- return type: `boolean`


## Method: kill


## Method: start
- return type: `com.pnfsoftware.jeb.util.concurrent.ProcessWrapper`


## Method: toString
- return type: `java.lang.String`


## Method: waitForCompletion


## Static Method: isKillSpawnedProcessesOnShutdown
- return type: `boolean`


## Static Method: setKillSpawnedProcessesOnShutdown
- parameter: `enabled`, type: `boolean`


