org.proteios.util
Class ConsoleProgressReporter
java.lang.Object
org.proteios.util.ConsoleProgressReporter
- All Implemented Interfaces:
- ProgressReporter
public class ConsoleProgressReporter
- extends Object
- implements ProgressReporter
An implementation of the ProgressReporter interface that writes
all messages to the standard console.
- Version:
- 2.0
- Author:
- Nicklas
- Last modified
- $Date: 2009-11-06 12:30:35 +0100 (Fri, 06 Nov 2009) $
|
Method Summary |
void |
append(String message)
Append a message to the previous one. |
void |
display(int percent,
String message)
Display a progress message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConsoleProgressReporter
public ConsoleProgressReporter()
display
public void display(int percent,
String message)
- Description copied from interface:
ProgressReporter
- Display a progress message.
- Specified by:
display in interface ProgressReporter
- Parameters:
percent - How many percent of the task that is completedmessage - A message, or null
append
public void append(String message)
- Description copied from interface:
ProgressReporter
- Append a message to the previous one.
- Specified by:
append in interface ProgressReporter
- Parameters:
message - The message