Class TotalProgressBar

java.lang.Object
org.springframework.boot.buildpack.platform.docker.TotalProgressBar
All Implemented Interfaces:
Consumer<TotalProgressEvent>

public class TotalProgressBar extends Object implements Consumer<TotalProgressEvent>
Utility to render a simple progress bar based on consumed TotalProgressEvent objects.
Since:
2.3.0
Author:
Phillip Webb
  • Constructor Details

    • TotalProgressBar

      public TotalProgressBar(String prefix)
      Create a new TotalProgressBar instance.
      Parameters:
      prefix - the prefix to output
    • TotalProgressBar

      public TotalProgressBar(String prefix, PrintStream out)
      Create a new TotalProgressBar instance.
      Parameters:
      prefix - the prefix to output
      out - the output print stream to use
    • TotalProgressBar

      public TotalProgressBar(String prefix, char progressChar, boolean bookend, PrintStream out)
      Create a new TotalProgressBar instance.
      Parameters:
      prefix - the prefix to output
      progressChar - the progress char to print
      bookend - if bookends should be printed
      out - the output print stream to use
  • Method Details