Class TotalProgressBar
java.lang.Object
org.springframework.boot.buildpack.platform.docker.TotalProgressBar
- All Implemented Interfaces:
Consumer<TotalProgressEvent>
Utility to render a simple progress bar based on consumed
TotalProgressEvent
objects.- Since:
- 2.3.0
- Author:
- Phillip Webb
-
Constructor Summary
ConstructorDescriptionTotalProgressBar
(String prefix) Create a newTotalProgressBar
instance.TotalProgressBar
(String prefix, char progressChar, boolean bookend, PrintStream out) Create a newTotalProgressBar
instance.TotalProgressBar
(String prefix, PrintStream out) Create a newTotalProgressBar
instance. -
Method Summary
-
Constructor Details
-
TotalProgressBar
Create a newTotalProgressBar
instance.- Parameters:
prefix
- the prefix to output
-
TotalProgressBar
Create a newTotalProgressBar
instance.- Parameters:
prefix
- the prefix to outputout
- the output print stream to use
-
TotalProgressBar
Create a newTotalProgressBar
instance.- Parameters:
prefix
- the prefix to outputprogressChar
- the progress char to printbookend
- if bookends should be printedout
- the output print stream to use
-
-
Method Details
-
accept
- Specified by:
accept
in interfaceConsumer<TotalProgressEvent>
-