Uses of Interface
io.smallrye.common.process.PipelineBuilder.Output
-
Uses of PipelineBuilder.Output in io.smallrye.common.process
Methods in io.smallrye.common.process that return PipelineBuilder.OutputModifier and TypeMethodDescriptionInstruct the builder to transfer the output of the process to the given path.PipelineBuilder.Output.captureHeadLines(int headLines) Set the number of "head" or leading lines of output to capture for exception messages.PipelineBuilder.Output.captureTailLines(int tailLines) Set the number of "tail" or trailing lines of output to capture for exception messages.Set the character set for output character data.default PipelineBuilder.Output<Void> PipelineBuilder.Output.consumeBytesWith(ExceptionConsumer<InputStream, IOException> consumer) Instruct the builder to consume the bytes of the output with the given consumer.default PipelineBuilder.Output<Void> PipelineBuilder.Output.consumeLinesWith(int maxLineLength, ExceptionConsumer<String, IOException> consumer) Instruct the builder to consume each line of the output with the given consumer.default PipelineBuilder.Output<Void> PipelineBuilder.Output.consumeWith(ExceptionConsumer<BufferedReader, IOException> consumer) Instruct the builder to consume the output with the given consumer.default PipelineBuilder.Output<O> PipelineBuilder.Output.copyAndAppendTo(Path path) Instruct the builder to transfer a copy of the output of the process to the given path.PipelineBuilder.Output.copyAndConsumeBytesWith(ExceptionConsumer<InputStream, IOException> consumer) Instruct the builder to consume a copy of the bytes of the output with the given consumer.default PipelineBuilder.Output<O> PipelineBuilder.Output.copyAndConsumeLinesWith(int maxLineLength, ExceptionConsumer<String, IOException> consumer) Instruct the builder to consume a copy of each line of the output with the given consumer.PipelineBuilder.Output.copyAndConsumeWith(ExceptionConsumer<BufferedReader, IOException> consumer) Instruct the builder to consume a copy of the output with the given consumer.default PipelineBuilder.Output<O> PipelineBuilder.Output.copyAndTransferTo(OutputStream stream) Instruct the builder to transfer a copy of the output of the process to the given stream.default PipelineBuilder.Output<O> PipelineBuilder.Output.copyAndTransferTo(Writer writer) Instruct the builder to transfer a copy of the output of the process to the given writer.default PipelineBuilder.Output<O> PipelineBuilder.Output.copyAndTransferTo(Path path) Instruct the builder to transfer a copy of the output of the process to the given path.PipelineBuilder.Output.discard()Instruct the builder to discard the output of this process.PipelineBuilder.Output.gatherOnFail(boolean gather) Whenincludeistrueand process execution fails, some or all output lines will be gathered to be included in the thrown exception.PipelineBuilder.Output.inherited()Instruct the builder to inherit the process output from the current process.PipelineBuilder.Output.maxCaptureLineLength(int characters) Limit the maximum length of each captured line to the given number of characters.default PipelineBuilder.Output<O> PipelineBuilder.Output.nativeCharset()Instruct the builder to use the native output character set for output character data.PipelineBuilder.output()Configure the output handling of the process.<O2> PipelineBuilder.Output<O2> PipelineBuilder.Output.processBytesWith(ExceptionFunction<InputStream, O2, IOException> processor) Instruct the builder to process the bytes of the output with the given function, whose return value is passed to the caller ofPipelineBuilder.run().<O2> PipelineBuilder.Output<O2> PipelineBuilder.Output.processWith(ExceptionFunction<BufferedReader, O2, IOException> processor) Instruct the builder to process the output with the given function, whose return value is passed to the caller ofPipelineBuilder.run().PipelineBuilder.Output.toSingleString(int maxChars) Instruct the builder to return the output of the process as a single string.PipelineBuilder.Output.toStringList(int maxLines, int maxLineLength) Instruct the builder to return the output of the process as a list of strings.default PipelineBuilder.Output<Void> PipelineBuilder.Output.transferTo(OutputStream stream) Instruct the builder to transfer the output of the process to the given stream.default PipelineBuilder.Output<Void> PipelineBuilder.Output.transferTo(Writer writer) Instruct the builder to transfer the output of the process to the given writer.PipelineBuilder.Output.transferTo(Path path) Instruct the builder to transfer the output of the process to the given path.