@Incubating public interface ExecOutput
Modifier and Type | Interface | Description |
---|---|---|
static interface |
ExecOutput.StandardStreamContent |
A handle to access content of the process' standard stream (the standard output of the
standard error output).
|
Modifier and Type | Method | Description |
---|---|---|
Provider<ExecResult> |
getResult() |
Returns a provider of the execution result.
|
ExecOutput.StandardStreamContent |
getStandardError() |
Gets a handle to the content of the process' standard error output.
|
ExecOutput.StandardStreamContent |
getStandardOutput() |
Gets a handle to the content of the process' standard output.
|
Provider<ExecResult> getResult()
The external process is executed only once and only when the value is requested for the first time.
If starting the process results in exception then the ensuing exception is permanently
propagated to callers of Provider.get()
, Provider.getOrElse(T)
,
Provider.getOrNull()
and Provider.isPresent()
.
ExecOutput.StandardStreamContent getStandardOutput()
ExecOutput.StandardStreamContent getStandardError()