org.apache.maven.util
Interface DownloadMeter

All Known Implementing Classes:
BootstrapDownloadMeter, ConsoleDownloadMeter, SilentDownloadMeter

public interface DownloadMeter

Download progress meter.

Version:
$Id: DownloadMeter.java,v 1.1.2.1 2004/07/06 12:45:48 brett Exp $
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.