apps.mtdesktop.fileutility
Class Downloader

java.lang.Object
  extended by apps.mtdesktop.fileutility.Downloader

public class Downloader
extends java.lang.Object

The Class Downloader.


Constructor Summary
Downloader(AssetRegistry assetRegistry)
          Instantiates a new downloader.
 
Method Summary
 void downloadFile(java.lang.String fileUrl, java.lang.String destinationDir)
          Download file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Downloader

public Downloader(AssetRegistry assetRegistry)
Instantiates a new downloader.

Parameters:
assetRegistry - the asset registry
Method Detail

downloadFile

public void downloadFile(java.lang.String fileUrl,
                         java.lang.String destinationDir)
                  throws java.net.MalformedURLException,
                         java.io.IOException
Download file.

Parameters:
fileUrl - the file url
destinationDir - the destination dir
Throws:
java.net.MalformedURLException - the malformed url exception
java.io.IOException - Signals that an I/O exception has occurred.