Reusable Java library of general tools with minimal external dependencies.
For questions or support, please contact us:
Email: support@aoindustries.com
Phone: 1-800-519-9541
Phone: +1-251-607-9556
Web: https://www.aoindustries.com/contact
public class ProcessResult extends Object
| Modifier and Type | Method and Description |
|---|---|
static ProcessResult |
exec(String[] command)
Executes the provided command and gets the result in the system default character set.
|
static ProcessResult |
exec(String[] command,
Charset charset)
Executes the provided command and gets the result in the provided character set.
|
int |
getExitVal() |
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.
|
String |
getStderr() |
String |
getStdout() |
public static ProcessResult exec(String[] command) throws IOException
IOExceptionpublic static ProcessResult exec(String[] command, Charset charset) throws IOException
IOExceptionpublic static ProcessResult getProcessResult(Process process) throws IOException
IOExceptionpublic static ProcessResult getProcessResult(Process process, Charset charset) throws IOException
IOExceptionpublic int getExitVal()
public String getStdout()
public String getStderr()
Copyright © 2000–2016 AO Industries, Inc.. All rights reserved.