java.lang.Object
org.jenkinsci.plugins.ParameterizedRemoteTrigger.pipeline.PrintStreamWrapper

public class PrintStreamWrapper extends Object
Wrapper to provide a PrintStream for writing content to and a corresponding getContent() method to get the content which has been written to the PrintStream. The reason is from the async Pipeline Handle we don't have an active TaskListener.getLogger() anymore this means everything written to the PrintStream (logger) will not be printed to the Pipeline log. Therefore we provide this PrintStream for logging and the content can be obtained later via getContent().