java.lang.Object
com.aoapps.lang.ProcessResult
Contains the result of executing a process, including return code, standard output, and standard error.
- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic ProcessResult
Executes the provided command and gets the result in the system default character set.static ProcessResult
Executes the provided command and gets the result in the provided character set.int
static ProcessResult
getProcessResult
(Process process) Gets the result of the provided process in the system default character set.static ProcessResult
getProcessResult
(Process process, Charset charset) Gets the result of the provided process in the provided character set.
-
Method Details
-
exec
Executes the provided command and gets the result in the system default character set.- Throws:
IOException
-
exec
Executes the provided command and gets the result in the provided character set.- Throws:
IOException
-
getProcessResult
Gets the result of the provided process in the system default character set.- Throws:
IOException
-
getProcessResult
Gets the result of the provided process in the provided character set.- Throws:
IOException
-
getExitVal
public int getExitVal() -
getStdout
-
getStderr
-