CapturingOutputStream
class CapturingOutputStream(parentStream: PrintStream?, conf: OutputConfig, captureOutput: Boolean, val onCaptured: (String) -> Unit) : OutputStream
An OutputStream that captures the written content while optionally forwarding it to a parentStream. Capturing only happens if captureOutput is true. The captured content is passed to a callback function onCaptured when certain buffer conditions are met. These conditions are defined by conf.
Constructors
Link copied to clipboard
constructor(parentStream: PrintStream?, conf: OutputConfig, captureOutput: Boolean, onCaptured: (String) -> Unit)