net.sf.basedb.util
Class ConsoleProgressReporter
java.lang.Object
net.sf.basedb.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: 2010-04-29 13:33:19 +0200 (Thu, 29 Apr 2010) $
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 |
useNewLine
private final boolean useNewLine
needNewLine
private boolean needNewLine
ConsoleProgressReporter
public ConsoleProgressReporter()
ConsoleProgressReporter
public ConsoleProgressReporter(boolean useNewline)
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 completed
or -1 if not knownmessage
- 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