public class AssetIndexReference extends Download
CHECKSUM_ALGORITHM| Constructor | Description |
|---|---|
AssetIndexReference(String id,
String sha1,
long size,
URL url,
long totalSize) |
| Modifier and Type | Method | Description |
|---|---|---|
boolean |
equals(Object o) |
|
AssetIndex |
fetch() |
Fetches the full asset index from the server and parses its contents.
|
String |
getId() |
Retrieves a globally unique identifier for this asset index.
|
long |
getTotalSize() |
Retrieves the combined size for all files within the asset index (in bytes).
|
int |
hashCode() |
@NonNull public AssetIndex fetch() throws IOException
IOException - when the server is unreachable, responds with an error code or when the
data is malformed.@NonNull public String getId()
public long getTotalSize()
Copyright © 2018 Basin. All rights reserved.