Package tv.hd3g.processlauncher.io
Class CapturedStdOutErrTextInteractive
- java.lang.Object
-
- tv.hd3g.processlauncher.io.CapturedStdOutErrTextInteractive
-
- All Implemented Interfaces:
CapturedStdOutErrTextObserver
public class CapturedStdOutErrTextInteractive extends Object implements CapturedStdOutErrTextObserver
-
-
Constructor Summary
Constructors Constructor Description CapturedStdOutErrTextInteractive(Function<LineEntry,String> interactive, BiConsumer<ProcesslauncherLifecycle,Boolean> onProcessClosedStream)Sync (blocking) execution.CapturedStdOutErrTextInteractive(Function<LineEntry,String> interactive, BiConsumer<ProcesslauncherLifecycle,Boolean> onProcessClosedStream, Charset destCharset, Executor eventExecutor)CapturedStdOutErrTextInteractive(Function<LineEntry,String> interactive, BiConsumer<ProcesslauncherLifecycle,Boolean> onProcessClosedStream, Executor eventExecutor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonProcessCloseStream(ProcesslauncherLifecycle source, boolean isStdErr, CapturedStreams streamToKeepPolicy)voidonText(LineEntry lineEntry)
-
-
-
Constructor Detail
-
CapturedStdOutErrTextInteractive
public CapturedStdOutErrTextInteractive(Function<LineEntry,String> interactive, BiConsumer<ProcesslauncherLifecycle,Boolean> onProcessClosedStream, Charset destCharset, Executor eventExecutor)
- Parameters:
interactive- function return null if nothing to send.onProcessClosedStream- -> source, isStdErrdestCharset- used for injected String to byte[] in stream
-
CapturedStdOutErrTextInteractive
public CapturedStdOutErrTextInteractive(Function<LineEntry,String> interactive, BiConsumer<ProcesslauncherLifecycle,Boolean> onProcessClosedStream, Executor eventExecutor)
- Parameters:
interactive- function return null if nothing to send.onProcessClosedStream- -> source, isStdErr
-
CapturedStdOutErrTextInteractive
public CapturedStdOutErrTextInteractive(Function<LineEntry,String> interactive, BiConsumer<ProcesslauncherLifecycle,Boolean> onProcessClosedStream)
Sync (blocking) execution.- Parameters:
interactive- function return null if nothing to send.onProcessClosedStream- -> source, isStdErr
-
-
Method Detail
-
onText
public void onText(LineEntry lineEntry)
- Specified by:
onTextin interfaceCapturedStdOutErrTextObserver
-
onProcessCloseStream
public void onProcessCloseStream(ProcesslauncherLifecycle source, boolean isStdErr, CapturedStreams streamToKeepPolicy)
- Specified by:
onProcessCloseStreamin interfaceCapturedStdOutErrTextObserver
-
-