ProcessRunnerResult class
This is the result of running a command using ProcessRunner or ProcessPool. It includes the entire stderr, stdout, and interleaved output from the command after it has completed.
The stdoutRaw, stderrRaw, and outputRaw members contain the encoded output from the command as a List<int>.
The stdout, stderr, and output accessors will decode the stdoutRaw, stderrRaw, and outputRaw data automatically, using a SystemEncoding decoder.
Constructors
-
ProcessRunnerResult(int exitCode, List<
int> stdoutRaw, List<int> stderrRaw, List<int> outputRaw, {Encoding decoder = const SystemEncoding(), int? pid}) - Creates a new ProcessRunnerResult, usually created by a ProcessRunner.
Properties
- decoder → Encoding
-
The optional encoder to use in stdout, stderr, and output accessors to decode
the raw data.
final
- exitCode → int
-
Contains the exit code from the completed process.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- output → String
-
Returns a lazily-decoded version of the data in outputRaw, decoded using
decoder.
no setter
-
outputRaw
→ List<
int> -
Contains the raw, encoded, interleaved stdout and stderr output from the
process.
final
- pid → int?
-
The optional PID of the invoked process.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stderr → String
-
Returns a lazily-decoded version of the data in stderrRaw, decoded using
decoder.
no setter
-
stderrRaw
→ List<
int> -
Contains the raw, encoded, stderr output from the completed process.
final
- stdout → String
-
Returns a lazily-decoded version of the data in stdoutRaw, decoded using
decoder.
no setter
-
stdoutRaw
→ List<
int> -
Contains the raw, encoded, stdout output from the completed process.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- emptySuccess → ProcessRunnerResult
-
A constant to use if there is no result data available, but the process succeeded.
final
- failed → ProcessRunnerResult
-
A constant to use if there is no result data available, but the process failed.
final