public class StreamToLogsPumper extends Object implements Runnable
Basically a variation of the Ant StreamPumper that puts in the output in the logs
Modifier and Type | Field and Description |
---|---|
protected BuildLogger |
buildLogger |
protected String |
planKey |
Constructor and Description |
---|
StreamToLogsPumper(InputStream inputStream,
BuildLogger buildLogger,
String planKey)
Pump the given inputStream into the given outputList
|
StreamToLogsPumper(InputStream inputStream,
BuildLogger buildLogger,
String planKey,
boolean filterDownloadStatusMessages) |
Modifier and Type | Method and Description |
---|---|
protected void |
log(String line) |
protected void |
pump(BufferedReader reader)
Pump the reader into logs
|
void |
run()
Convert the input stream into a list within the thread
|
protected final BuildLogger buildLogger
protected final String planKey
public StreamToLogsPumper(InputStream inputStream, BuildLogger buildLogger, String planKey)
inputStream
- input data streambuildLogger
- planKey
- public StreamToLogsPumper(InputStream inputStream, BuildLogger buildLogger, String planKey, boolean filterDownloadStatusMessages)
public void run()
protected void pump(BufferedReader reader) throws IOException
reader
- The readerIOException
- Something went wrongprotected void log(@NotNull String line)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.