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 ProcessResultExecutes the provided command and gets the result in the system default character set.static ProcessResultExecutes the provided command and gets the result in the provided character set.intstatic ProcessResultgetProcessResult(Process process) Gets the result of the provided process in the system default character set.static ProcessResultgetProcessResult(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
-
