Package com.android.repository.api
Interface RemotePackage
-
- All Superinterfaces:
java.lang.Comparable<RepoPackage>,RepoPackage
- All Known Implementing Classes:
RemotePackage,RemotePackage,RemotePackageImpl
public interface RemotePackage extends RepoPackage
An package available for download. In addition to what's provided byRepoPackage,RemotePackagehas an associatedRepositorySourceand archives.
-
-
Field Summary
-
Fields inherited from interface com.android.repository.api.RepoPackage
PATH_SEPARATOR
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ArchivegetArchive()ChannelgetChannel()Gets the update channel (e.g.java.nio.file.PathgetInstallDir(RepoManager manager, ProgressIndicator progress)Gets the path into which thisRemotePackageshould be installed.RepositorySourcegetSource()voidsetSource(RepositorySource source)-
Methods inherited from interface com.android.repository.api.RepoPackage
asMarshallable, createFactory, getAllDependencies, getDisplayName, getLicense, getPath, getTypeDetails, getVersion, obsolete
-
-
-
-
Method Detail
-
getSource
@NonNull RepositorySource getSource()
- Returns:
- The
RepositorySourcefrom which we got this package.
-
setSource
void setSource(@NonNull RepositorySource source)- Parameters:
source- TheRepositorySourcefrom which we got this package.
-
getArchive
@Nullable Archive getArchive()
- Returns:
- The archive in this package compatible with the current hardware, OS, and JDK,
or
nullif there is none.
-
getChannel
@NonNull Channel getChannel()
Gets the update channel (e.g. beta, stable) for this package. Channels are sorted in lexicographic order, with the first (and default) being the most stable.
-
getInstallDir
@NonNull java.nio.file.Path getInstallDir(@NonNull RepoManager manager, @NonNull ProgressIndicator progress)Gets the path into which thisRemotePackageshould be installed.- Throws:
java.io.IOException- if the generated path is invalid, ormanagerdoesn't support a local repository.
-
-