org.apache.maven.util
Interface DownloadMeter

All Known Implementing Classes:
BootstrapDownloadMeter, ConsoleDownloadMeter, SilentDownloadMeter

public interface DownloadMeter

Download progress meter.

Version:
$Id: DownloadMeter.java 122358 2004-07-06 12:45:48Z brett $
Author:
Brett Porter

Method Summary
 void finish(int total)
          Finalise the progress bar.
 void update(int complete, int total)
          Update the progress bar.
 

Method Detail

update

public void update(int complete,
                   int total)
Update the progress bar.

Parameters:
complete - amount complete in bytes
total - the total in bytes, or 0 if unknown

finish

public void finish(int total)
Finalise the progress bar.

Parameters:
total - the total in bytes


Copyright © 2001-2005 Apache Software Foundation. All Rights Reserved.