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 Details

    • useNewLine

      private final boolean useNewLine
    • needNewLine

      private boolean needNewLine
  • Constructor Details

    • ConsoleProgressReporter

      public ConsoleProgressReporter()
    • ConsoleProgressReporter

      public ConsoleProgressReporter(boolean useNewline)
  • Method Details

    • 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