com.android.repository.api
Interface FallbackRemoteRepoLoader
public interface FallbackRemoteRepoLoader
An implementation of a remote repo parser to use to try to parse and xml file if the normal
mechanism doesn't. If one is provided to RepoManager,
parseLegacyXml(RepositorySource, ProgressIndicator) will be run on every xml file
retrieved from a RepositorySource that isn't recognized by the normal mechanism.
parseLegacyXml
@Nullable
java.util.Collection<RemotePackage> parseLegacyXml(@NonNull
RepositorySource xml,
@NonNull
ProgressIndicator progress)
- Parses an xml file into
RemotePackages.
- Parameters:
xml - The RepositorySource to read from.
- Returns:
- The parsed packages, null if none are found (due to an error).