Package nl.vpro.util
Class CommandExecutor.Parameters.Builder
java.lang.Object
nl.vpro.util.CommandExecutor.Parameters.Builder
- Enclosing class:
- CommandExecutor.Parameters
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Deprecated.errors
(OutputStream errors) int
execute
(CommandExecutor executor) in
(InputStream in) listArgs
(Collection<? extends String> listArgs) onProcessCreation
(Consumer<Process> onProcessCreation) out
(OutputStream out) outputConsumer
(Consumer<nl.vpro.logging.simple.Event> outputConsumer) Sets up input and errors stream (unless they are set already) so they can be used via aConsumer
ofEvent
s.submit
(IntConsumer exitCode, CommandExecutor executor) submit
(CommandExecutor executor) toString()
-
Method Details
-
args
-
arg
-
submit
-
submit
-
execute
-
outputConsumer
public CommandExecutor.Parameters.Builder outputConsumer(Consumer<nl.vpro.logging.simple.Event> outputConsumer) Sets up input and errors stream (unless they are set already) so they can be used via a
Consumer
ofEvent
s.Lines on stdin are fed to the consumer as Events on level
Level.INFO
Lines on stderr are fed to the consumer as Events on level
Level.ERROR
Empty lines are ignored.
-
consumer
Deprecated. -
in
- Returns:
this
.
-
out
- Returns:
this
.
-
errors
- Returns:
this
.
-
onProcessCreation
- Returns:
this
.
-
listArg
-
listArgs
-
clearListArgs
-
build
-
toString
-
onProcessCreation(Consumer)