public class DelegatingProgressBarConsumer extends Object implements ProgressBarConsumer
Consumer.| Constructor and Description |
|---|
DelegatingProgressBarConsumer(Consumer<String> consumer) |
DelegatingProgressBarConsumer(Consumer<String> consumer,
int maxProgressLength) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(String str)
Accepts a rendered form of a progress bar, e.g., prints to a specified stream.
|
void |
close() |
int |
getMaxRenderedLength()
Returns the maximum length allowed for the rendered form of a progress bar.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappend, append, appendpublic int getMaxRenderedLength()
ProgressBarConsumergetMaxRenderedLength in interface ProgressBarConsumerpublic void accept(String str)
ProgressBarConsumeraccept in interface Consumer<String>accept in interface ProgressBarConsumerstr - Rendered form of a progress bar, a stringpublic void close()
close in interface AutoCloseableclose in interface ProgressBarConsumerCopyright © 2022. All rights reserved.