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
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.