Package 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: 2012-09-14 09:28:35 +0200 (fr, 14 sep 2012) $
-
-
Field Summary
Fields Modifier and Type Field Description private boolean
needNewLine
private boolean
useNewLine
-
Constructor Summary
Constructors Constructor Description ConsoleProgressReporter()
ConsoleProgressReporter(boolean useNewline)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
append(String message)
Append a message to the previous one.void
display(int percent, String message)
Display a progress message.
-
-
-
Method Detail
-
display
public void display(int percent, String message)
Description copied from interface:ProgressReporter
Display a progress message.- Specified by:
display
in interfaceProgressReporter
- 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 interfaceProgressReporter
- Parameters:
message
- The message
-
-