public class StreamToListPumper extends Object implements Runnable
Basically a variation of the Ant StreamPumper that puts in the output in a list
| Modifier and Type | Field and Description |
|---|---|
protected BuildLogger |
buildLogger |
protected String |
planKey |
| Constructor and Description |
|---|
StreamToListPumper(InputStream inputStream,
Collection<String> outputList,
BuildLogger buildLogger,
String planKey)
Pump the given inputStream into the given outputList
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
log(String line) |
protected void |
pump(BufferedReader reader)
Pump the reader into myOutputList.
|
void |
run()
Convert the input stream into a list within the thread
|
protected final BuildLogger buildLogger
protected final String planKey
public StreamToListPumper(InputStream inputStream, Collection<String> outputList, BuildLogger buildLogger, String planKey)
inputStream - input data streamoutputList - resulting collection of linesbuildLogger - the logger for the buildplanKey - the plankey for the buildpublic void run()
protected void pump(BufferedReader reader) throws IOException
reader - The readerIOException - Something went wrongprotected void log(String line)
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.