| java.lang.Object | ||
| ↳ | com.carto.utils.AssetPackage | |
| ↳ | com.carto.utils.ZippedAssetPackage | |
An asset package based on ZIP archived.
Only deflate-based ZIP archives are supported.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
ZippedAssetPackage(BinaryData zipData)
Constructs a ZIP asset package from the archived binary data.
| |||||||||||
|
ZippedAssetPackage(BinaryData zipData, AssetPackage baseAssetPackage)
Constructs a ZIP asset package from the archived binary data and a fallback asset package.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| synchronized void | delete() | ||||||||||
| StringVector |
getAssetNames()
Returns list of assets in the asset package.
| ||||||||||
| StringVector | getLocalAssetNames() | ||||||||||
| BinaryData |
loadAsset(String name)
Loads the specified asset from the asset package.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.carto.utils.AssetPackage
| |||||||||||
From class
java.lang.Object
| |||||||||||
Constructs a ZIP asset package from the archived binary data.
| zipData | The ZIP archive. |
|---|
Constructs a ZIP asset package from the archived binary data and a fallback asset package.
| zipData | The ZIP archive. |
|---|---|
| baseAssetPackage | The base asset package. If an asset is not found in the ZIP archive, base asset package is used. |
Returns list of assets in the asset package.
All listed assets can read using loadAsset API.
Loads the specified asset from the asset package.
| name | The asset name to read. |
|---|