Interface Download
-
@Immutable @TypeAdapters public interface DownloadA single file download in the version manifest.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable java.lang.Stringpath()Path identifying the standard destination for this download.java.lang.Stringsha1()Get the SHA-1 hash expected for the download.intsize()Expected size of the download, in bytes.java.net.URLurl()The URL to download from.
-
-
-
Method Detail
-
path
@Nullable java.lang.String path()
Path identifying the standard destination for this download.Not always included.
- Returns:
- the download path
-
sha1
java.lang.String sha1()
Get the SHA-1 hash expected for the download.- Returns:
- the hash
-
size
int size()
Expected size of the download, in bytes.- Returns:
- the file size
-
url
java.net.URL url()
The URL to download from.- Returns:
- file download URL
-
-