Last update: 2011-06-23

org.proteios.util
Class ConsoleProgressReporter

java.lang.Object
  extended by org.proteios.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: 2009-11-06 12:30:35 +0100 (Fri, 06 Nov 2009) $

Constructor Summary
ConsoleProgressReporter()
           
 
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
 

Constructor Detail

ConsoleProgressReporter

public ConsoleProgressReporter()
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
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

Last update: 2011-06-23