Last update: 2011-06-23

org.proteios.core
Interface AbsoluteProgressReporter

All Superinterfaces:
ProgressReporter
All Known Implementing Classes:
SimpleAbsoluteProgressReporter

public interface AbsoluteProgressReporter
extends ProgressReporter

This is interface is an extension to the ProgressReporter interface. Instead of sending the percentage of progress it is possible to send an absolute value. This is useful for example when copying files where it makes more sense to display the number of bytes copied. It is up to each implementation to define the end point, i.e. the total number of bytes to copy. Implementations should still allow the ProgressReporter.display(int, String) method to be called.

Author:
nicklas

Method Summary
 void displayAbsolute(long completed, String message)
          Display a progress message.
 
Methods inherited from interface org.proteios.core.ProgressReporter
append, display
 

Method Detail

displayAbsolute

void displayAbsolute(long completed,
                     String message)
Display a progress message.

Parameters:
completed - long The progress of the task.
message - String A message, or null.

Last update: 2011-06-23