2.17.2: 2011-06-17

net.sf.basedb.util
Class ConsoleProgressReporter

java.lang.Object
  extended by 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) $

Field Summary
private  boolean needNewLine
           
private  boolean useNewLine
           
 
Constructor Summary
ConsoleProgressReporter()
           
ConsoleProgressReporter(boolean useNewline)
           
 
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
 

Field Detail

useNewLine

private final boolean useNewLine

needNewLine

private boolean needNewLine
Constructor Detail

ConsoleProgressReporter

public ConsoleProgressReporter()

ConsoleProgressReporter

public ConsoleProgressReporter(boolean useNewline)
Method Detail

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 known
message - 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

2.17.2: 2011-06-17