Asset containing chunks.
More...
|
| | ChunkAsset (AssetManager assetManager, String filename) throws IOError |
| | Creates a chunk asset. More...
|
| |
| void | open () throws IOError |
| | Opens the collection to read chunks from it. More...
|
| |
| void | close () |
| | Closes the collection after a reading session. More...
|
| |
| long | size () |
| |
| boolean | chunkExists (String id) |
| | Check if a specific chunk exists. More...
|
| |
| long | chunkSize (String id) |
| | Retrieves size of a specific chunk. More...
|
| |
| String | read (String id) |
| | Reads a chunk with a specific id and returns it as a string. More...
|
| |
Asset containing chunks.
Definition at line 28 of file ChunkAsset.java.
◆ ChunkAsset()
| Beatmup.Utils.ChunkAsset.ChunkAsset |
( |
AssetManager |
assetManager, |
|
|
String |
filename |
|
) |
| throws IOError |
|
inline |
Creates a chunk asset.
- Parameters
-
| assetManager | AssetManager instance to access assets |
| filename | Filename and path of the asset to read |
- Exceptions
-
| IOError | if the asset cannot be read. |
Definition at line 37 of file ChunkAsset.java.
38 super(newChunkAsset(assetManager, filename));
The documentation for this class was generated from the following file: