Package de.uplanet.util
Klasse ExecWrapper
java.lang.Object
de.uplanet.util.ExecWrapper
Wrap child processes.
Note: this class is not thread-safe.
-
Verschachtelte Klassen - Übersicht
Verschachtelte Klassen -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungintexec()Executes the process.intExecutes the process and waits for termination until the given timeout has been reached.Get the error output of the child process.Get the standard output of the child process.
-
Konstruktordetails
-
ExecWrapper
-
-
Methodendetails
-
exec
Executes the process. Waits indeterminately until the prcess terminates.- Gibt zurück:
- The exit code of the child process.
- Löst aus:
IOException- if any occursInterruptedException- if any occurs
-
exec
public int exec(long p_lTimeout, TimeUnit p_timeUnit) throws IOException, InterruptedException, ExecWrapper.TimeoutException Executes the process and waits for termination until the given timeout has been reached.- Parameter:
p_lTimeout- timeout value to wait for the process to terminate.p_timeUnit- timeunit of the time out value- Gibt zurück:
- The exit code of the child process
- Löst aus:
IOException- if any occursInterruptedException- if any occursExecWrapper.TimeoutException- if any occurs
-
getStdOut
Get the standard output of the child process.- Gibt zurück:
- The stdout output of the child process, or
nullif there was no such output.
-
getStdErr
Get the error output of the child process.- Gibt zurück:
- The stderr output of the child process, or
nullif there was no such output.
-