osdep.console
Class ConsoleDownloadListener

java.lang.Object
  extended by osdep.console.ConsoleDownloadListener
All Implemented Interfaces:
IDownloadListener

public class ConsoleDownloadListener
extends java.lang.Object
implements IDownloadListener

When a file is downloading, reports all the derived events on the console.

Author:
SHZ Mar 11, 2008

Constructor Summary
ConsoleDownloadListener()
           
 
Method Summary
 void downloadFinished(java.lang.String file)
          The downloading of the file is terminated
 void downloadStarted(java.lang.String file)
          The download of the given file is started
 void downloadStep(long bytesDownloaded)
          Another piece of the file has been downloaded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleDownloadListener

public ConsoleDownloadListener()
Method Detail

downloadFinished

public void downloadFinished(java.lang.String file)
Description copied from interface: IDownloadListener
The downloading of the file is terminated

Specified by:
downloadFinished in interface IDownloadListener

downloadStarted

public void downloadStarted(java.lang.String file)
Description copied from interface: IDownloadListener
The download of the given file is started

Specified by:
downloadStarted in interface IDownloadListener

downloadStep

public void downloadStep(long bytesDownloaded)
Description copied from interface: IDownloadListener
Another piece of the file has been downloaded

Specified by:
downloadStep in interface IDownloadListener