com.android.sdklib.repositoryv2
Class LegacyDownloader

java.lang.Object
  extended by com.android.sdklib.repositoryv2.LegacyDownloader
All Implemented Interfaces:
com.android.repository.api.Downloader

public class LegacyDownloader
extends java.lang.Object
implements com.android.repository.api.Downloader

A Downloader implementation that uses the old DownloadCache. TODO: Implement a new, fully-featured downloader.


Constructor Summary
LegacyDownloader(com.android.repository.io.FileOp fop)
           
 
Method Summary
 java.io.InputStream download(java.net.URL url, com.android.repository.api.SettingsController controller, com.android.repository.api.ProgressIndicator indicator)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LegacyDownloader

public LegacyDownloader(@NonNull
                        com.android.repository.io.FileOp fop)
Method Detail

download

@Nullable
public java.io.InputStream download(@NonNull
                                             java.net.URL url,
                                             @Nullable
                                             com.android.repository.api.SettingsController controller,
                                             @NonNull
                                             com.android.repository.api.ProgressIndicator indicator)
                             throws java.io.IOException
Specified by:
download in interface com.android.repository.api.Downloader
Throws:
java.io.IOException