Package com.android.repository.impl.meta
Class Archive.ArchiveFile
- java.lang.Object
-
- com.android.repository.impl.meta.Archive.ArchiveFile
-
- Direct Known Subclasses:
Archive.CompleteType,Archive.PatchType
- Enclosing class:
- Archive
public abstract static class Archive.ArchiveFile extends java.lang.ObjectGeneral parent for the actual files referenced in an archive.
-
-
Constructor Summary
Constructors Constructor Description ArchiveFile()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetLegacyChecksum()abstract longgetSize()Returns the size of the zip.ChecksumgetTypedChecksum()Returns the checksum for the zip.abstract java.lang.StringgetUrl()Returns the URL to download from.protected voidsetLegacyChecksum(java.lang.String checksum)voidsetSize(long size)Sets the size of the zip;voidsetTypedChecksum(Checksum checksum)Sets the checksum for this zip.voidsetUrl(java.lang.String url)Sets the URL to download from.
-
-
-
Method Detail
-
getTypedChecksum
@NonNull public Checksum getTypedChecksum()
Returns the checksum for the zip.
-
setTypedChecksum
public void setTypedChecksum(@NonNull Checksum checksum)Sets the checksum for this zip.
-
getLegacyChecksum
protected java.lang.String getLegacyChecksum()
-
setLegacyChecksum
protected void setLegacyChecksum(java.lang.String checksum)
-
getUrl
@NonNull public abstract java.lang.String getUrl()
Returns the URL to download from.
-
setUrl
public void setUrl(@NonNull java.lang.String url)Sets the URL to download from.
-
getSize
public abstract long getSize()
Returns the size of the zip.
-
setSize
public void setSize(long size)
Sets the size of the zip;
-
-