Package net.sf.basedb.util
Class ConsoleProgressReporter
java.lang.Object
net.sf.basedb.util.ConsoleProgressReporter
- All Implemented Interfaces:
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
-
Constructor Summary
-
Method Summary
-
Field Details
-
useNewLine
private final boolean useNewLine -
needNewLine
private boolean needNewLine
-
-
Constructor Details
-
ConsoleProgressReporter
public ConsoleProgressReporter() -
ConsoleProgressReporter
public ConsoleProgressReporter(boolean useNewline)
-
-
Method Details
-
display
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
Description copied from interface:ProgressReporter
Append a message to the previous one.- Specified by:
append
in interfaceProgressReporter
- Parameters:
message
- The message
-