Beatmup Java package
Beatmup.Utils.ChunkAsset Class Reference

Asset containing chunks. More...

Inheritance diagram for Beatmup.Utils.ChunkAsset:
Beatmup.Utils.ChunkCollection Beatmup.Object

Public Member Functions

 ChunkAsset (AssetManager assetManager, String filename) throws IOError
 Creates a chunk asset. More...
 
- Public Member Functions inherited from Beatmup.Utils.ChunkCollection
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...
 

Additional Inherited Members

- Protected Member Functions inherited from Beatmup.Object
synchronized void dispose ()
 Destroys the native object. More...
 
- Protected Attributes inherited from Beatmup.Object
long handle
 pointer to the native object More...
 

Detailed Description

Asset containing chunks.

Definition at line 28 of file ChunkAsset.java.

Constructor & Destructor Documentation

◆ ChunkAsset()

Beatmup.Utils.ChunkAsset.ChunkAsset ( AssetManager  assetManager,
String  filename 
) throws IOError
inline

Creates a chunk asset.

Parameters
assetManagerAssetManager instance to access assets
filenameFilename and path of the asset to read
Exceptions
IOErrorif the asset cannot be read.

Definition at line 37 of file ChunkAsset.java.

37  {
38  super(newChunkAsset(assetManager, filename));
39  }

The documentation for this class was generated from the following file: