mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-07-05 23:39:46 +03:00
Compare commits
2 commits
0b2b3a9852
...
10b4d3af12
Author | SHA1 | Date | |
---|---|---|---|
|
10b4d3af12 | ||
|
88fa3ca1a0 |
1 changed files with 9 additions and 0 deletions
|
@ -20,6 +20,8 @@ public final class HashedFile extends HashedEntry {
|
|||
public final long size;
|
||||
@LauncherNetworkAPI
|
||||
private final byte[] digest;
|
||||
@LauncherNetworkAPI
|
||||
public final String url;
|
||||
|
||||
|
||||
public HashedFile(HInput input) throws IOException {
|
||||
|
@ -30,6 +32,13 @@ public HashedFile(HInput input) throws IOException {
|
|||
public HashedFile(long size, byte[] digest) {
|
||||
this.size = VerifyHelper.verifyLong(size, VerifyHelper.L_NOT_NEGATIVE, "Illegal size: " + size);
|
||||
this.digest = digest == null ? null : DIGEST_ALGO.verify(digest).clone();
|
||||
this.url = null;
|
||||
}
|
||||
|
||||
public HashedFile(long size, byte[] digest, String url) {
|
||||
this.size = VerifyHelper.verifyLong(size, VerifyHelper.L_NOT_NEGATIVE, "Illegal size: " + size);
|
||||
this.digest = digest == null ? null : DIGEST_ALGO.verify(digest).clone();
|
||||
this.url = url;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue