Package net.bramp.ffmpeg.io
Class ProcessUtils
java.lang.Object
net.bramp.ffmpeg.io.ProcessUtils
- Author:
- bramp
-
Method Summary
Modifier and TypeMethodDescriptionstatic int
waitForWithTimeout
(Process p, long timeout, TimeUnit unit) Waits until a process finishes or a timeout occurs
-
Method Details
-
waitForWithTimeout
public static int waitForWithTimeout(Process p, long timeout, TimeUnit unit) throws TimeoutException Waits until a process finishes or a timeout occurs- Parameters:
p
- processtimeout
- timeout in given unitunit
- time unit- Returns:
- the process exit value
- Throws:
TimeoutException
- if a timeout occurs
-