Class OutputCollector
java.lang.Object
com.bmuschko.gradle.docker.internal.OutputCollector
- All Implemented Interfaces:
Closeable
,AutoCloseable
A utility class that will collect strings until a new line is encountered.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
OutputCollector
-
-
Method Details
-
accept
Accept a string as input. The collector will save the inputs until a new line is encountered, or the collector is closed. The newlines are stripped and not present in the output.- Parameters:
input
- The string to accept.
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-