Class ConsoleProgressBarConsumer

java.lang.Object
me.tongfei.progressbar.ConsoleProgressBarConsumer
All Implemented Interfaces:
Appendable, AutoCloseable, Consumer<String>, ProgressBarConsumer
Direct Known Subclasses:
InteractiveConsoleProgressBarConsumer

public class ConsoleProgressBarConsumer extends Object implements ProgressBarConsumer
Progress bar consumer that prints the progress bar state to console. By default System.err is used as PrintStream.
  • Field Details

    • consoleRightMargin

      private static int consoleRightMargin
    • maxRenderedLength

      int maxRenderedLength
    • out

      final PrintStream out
  • Constructor Details

    • ConsoleProgressBarConsumer

      public ConsoleProgressBarConsumer(PrintStream out)
    • ConsoleProgressBarConsumer

      public ConsoleProgressBarConsumer(PrintStream out, int maxRenderedLength)
  • Method Details