public class LegacyRemoteRepoLoader
extends java.lang.Object
implements com.android.repository.api.FallbackRemoteRepoLoader
FallbackRemoteRepoLoader
implementation that uses the old SdkSource
mechanism for
parsing packages.Constructor and Description |
---|
LegacyRemoteRepoLoader() |
Modifier and Type | Method and Description |
---|---|
java.util.Collection<com.android.repository.api.RemotePackage> |
parseLegacyXml(com.android.repository.api.RepositorySource source,
com.android.repository.api.SettingsController settings,
com.android.repository.api.ProgressIndicator progress)
Parses xml files using the
SdkSource mechanism into LegacyRemotePackage s. |
void |
setDownloadCache(com.android.sdklib.repository.legacy.remote.internal.DownloadCache cache)
Sets the
DownloadCache for us to use, so that a custom one can be used during tests. |
public void setDownloadCache(@Nullable com.android.sdklib.repository.legacy.remote.internal.DownloadCache cache)
DownloadCache
for us to use, so that a custom one can be used during tests.cache
- The DownloadCache
to use. If null
a new DownloadCache
will be created lazily.@NonNull public java.util.Collection<com.android.repository.api.RemotePackage> parseLegacyXml(@NonNull com.android.repository.api.RepositorySource source, @NonNull com.android.repository.api.SettingsController settings, @NonNull com.android.repository.api.ProgressIndicator progress)
SdkSource
mechanism into LegacyRemotePackage
s.parseLegacyXml
in interface com.android.repository.api.FallbackRemoteRepoLoader