public final class VerboseProcess extends Object
stdoutfrom a running process and logging it through SLF4J.
String name = new VerboseProcess( new ProcessBuilder("who", "am", "i") ).stdout();
The class throws an exception if the process returns a non-zero exit code.
The class is immutable and thread-safe.
|Constructor and Description|
Public ctor (builder will be configured to redirect error stream to the
|Modifier and Type||Method and Description|
prc- The process to work with
public String stdout()
stdoutfrom the process, after its finish (the method will wait for the process and log its output).
stdoutof the process
Copyright © 2012 jcabi.com. All Rights Reserved.