public class ConsoleProgressReporter extends java.lang.Object implements ProgressReporter
Modifier and Type | Field and Description |
---|---|
private boolean |
needNewLine |
private boolean |
useNewLine |
Constructor and Description |
---|
ConsoleProgressReporter() |
ConsoleProgressReporter(boolean useNewline) |
Modifier and Type | Method and Description |
---|---|
void |
append(java.lang.String message)
Append a message to the previous one.
|
void |
display(int percent,
java.lang.String message)
Display a progress message.
|
public ConsoleProgressReporter()
public ConsoleProgressReporter(boolean useNewline)
public void display(int percent, java.lang.String message)
ProgressReporter
display
in interface ProgressReporter
percent
- How many percent of the task that is completed
or -1 if not knownmessage
- A message, or nullpublic void append(java.lang.String message)
ProgressReporter
append
in interface ProgressReporter
message
- The message