Interface ProgressBarConsumer
- All Superinterfaces:
Appendable, AutoCloseable, Consumer<String>
- All Known Implementing Classes:
ConsoleProgressBarConsumer, DelegatingProgressBarConsumer, InteractiveConsoleProgressBarConsumer
A consumer that prints a rendered progress bar.
- Since:
- 0.8.0
-
Method Summary
Modifier and TypeMethodDescriptionvoidAccepts a rendered form of a progress bar, e.g., prints to a specified stream.default ProgressBarConsumerappend(char c) default ProgressBarConsumerappend(CharSequence csq) default ProgressBarConsumerappend(CharSequence csq, int start, int end) default voidclear()Clears the progress bar from the display.voidclose()intReturns the maximum length allowed for the rendered form of a progress bar.
-
Method Details
-
getMaxRenderedLength
int getMaxRenderedLength()Returns the maximum length allowed for the rendered form of a progress bar. -
accept
-
clear
default void clear()Clears the progress bar from the display. -
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
append
- Specified by:
appendin interfaceAppendable
-
close
void close()- Specified by:
closein interfaceAutoCloseable
-