public static class ProcessExecutor.IO
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
java.lang.StringBuilder |
consumeStdErr()
Returns a StringBuilder that is automatically updated from the Processes stdErr during
the runtime of the process, This should be called before executing the Process then checked
once execution has finished.
|
ProcessExecutor.IO |
consumeStdErrLines(java.util.function.Consumer<java.lang.String> cons)
Passes each line of the Executed processes stdErr to the supplied Consumer.
|
java.lang.StringBuilder |
consumeStdOut()
Returns a StringBuilder that is automatically updated from the Processes stdOut during
the runtime of the process, This should be called before executing the Process then checked
once execution has finished.
|
ProcessExecutor.IO |
consumeStdOutLines(java.util.function.Consumer<java.lang.String> cons)
Passes each line of the Executed processes stdOut to the supplied Consumer.
|
ProcessExecutor.IO |
pipeStdErr(java.io.OutputStream out)
Sets the stdErr of the Executed process to be piped into the supplied OutputStream.
|
ProcessExecutor.IO |
pipeStdIn(java.io.InputStream in)
Sets the stdIn of the Executed process to be piped in from the supplied InputStream.
|
ProcessExecutor.IO |
pipeStdOut(java.io.OutputStream out)
Sets the stdOut of the Executed process to be piped into the supplied OutputStream.
|
ProcessExecutor.IO |
voidStdErr()
Sends stdErr to the 4th dimension where puppies sleep with kittens.
|
ProcessExecutor.IO |
voidStdIn()
Literally passes nothing to the Executed process.
|
ProcessExecutor.IO |
voidStdOut()
Sends stdOut to the 4th dimension where puppies sleep with kittens.
|
public ProcessExecutor.IO pipeStdOut(java.io.OutputStream out)
out - The OutputStream.public ProcessExecutor.IO pipeStdErr(java.io.OutputStream out)
out - The OutputStream.public ProcessExecutor.IO pipeStdIn(java.io.InputStream in)
in - The InputStream.public ProcessExecutor.IO consumeStdOutLines(java.util.function.Consumer<java.lang.String> cons)
cons - The consumer.public ProcessExecutor.IO consumeStdErrLines(java.util.function.Consumer<java.lang.String> cons)
cons - The consumer.public java.lang.StringBuilder consumeStdOut()
ALL Process IO is performed off the 'Main' thread, just be smart.
public java.lang.StringBuilder consumeStdErr()
ALL Process IO is performed off the 'Main' thread, just be smart.
public ProcessExecutor.IO voidStdOut()
public ProcessExecutor.IO voidStdErr()
public ProcessExecutor.IO voidStdIn()