public class ConsoleProgressBarConsumer extends Object implements ProgressBarConsumer
System.err is used as PrintStream.| Constructor and Description |
|---|
ConsoleProgressBarConsumer(PrintStream out) |
ConsoleProgressBarConsumer(PrintStream out,
int maxRenderedLength) |
| 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 ConsoleProgressBarConsumer(PrintStream out)
public ConsoleProgressBarConsumer(PrintStream out, int maxRenderedLength)
public 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.