Class DelegatingProgressBarConsumer

java.lang.Object
me.tongfei.progressbar.DelegatingProgressBarConsumer
All Implemented Interfaces:
Appendable, AutoCloseable, Consumer<String>, ProgressBarConsumer

public class DelegatingProgressBarConsumer extends Object implements ProgressBarConsumer
Progress bar consumer that delegates the progress bar handling to a custom Consumer.
Since:
0.8.0
  • Field Details

    • maxProgressLength

      private final int maxProgressLength
    • consumer

      private final Consumer<String> consumer
  • Constructor Details

    • DelegatingProgressBarConsumer

      public DelegatingProgressBarConsumer(Consumer<String> consumer)
    • DelegatingProgressBarConsumer

      public DelegatingProgressBarConsumer(Consumer<String> consumer, int maxProgressLength)
  • Method Details