Class ModuleAssetRepository

  extended by org.jdesktop.wonderland.client.assetmgr.modules.ModuleAssetRepository
All Implemented Interfaces:

public class ModuleAssetRepository
extends java.lang.Object
implements AssetRepository

The ModuleAssetRepository implements the AssetRepository and represents a repository that serves assets from the Wonderland module system.

Jordan Slott

Constructor Summary
ModuleAssetRepository(java.lang.String baseURL, java.lang.String desiredChecksum)
          Constructor, takes the base URL associated with the repository.
Method Summary
 AssetStream openAssetStream(AssetURI assetURI)
          Attempts to open an input stream to the given asset.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public ModuleAssetRepository(java.lang.String baseURL,
                             java.lang.String desiredChecksum)
Constructor, takes the base URL associated with the repository. It also takes the desired checksum of the asset

Method Detail


public AssetStream openAssetStream(AssetURI assetURI)
Description copied from interface: AssetRepository
Attempts to open an input stream to the given asset. This method is responsible for checking whether the asset is already cached and the desired checksum (or other identity information) for the asset. It returns an AssetStream object in response, either containing the input stream, or whether the repository is invalid or whether the asset is already cached.

Specified by:
openAssetStream in interface AssetRepository
assetURI - The URI of the asset to load
An AssetStream object indicating the result

Open Wonderland -