org.jdesktop.wonderland.client.assetmgr
Interface AssetRepository

All Known Implementing Classes:
ModuleAssetRepository, WlContentAssetRepository, WlHttpAssetRepository

public interface AssetRepository

The AssetRepository interface represents a single instance of a server from which assets can be downloaded. Its single method openAssetStream() returns an AssetStream object which can be used to download data or indicate that the cached version already exists in the asset cache. It is up to the implementation of this class to determine this for its particular kind of asset.

Author:
Jordan Slott

Method Summary
 AssetStream openAssetStream(AssetURI assetURI)
          Attempts to open an input stream to the given asset.
 

Method Detail

openAssetStream

AssetStream openAssetStream(AssetURI assetURI)
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.

Parameters:
assetURI - The URI of the asset to load
Returns:
An AssetStream object indicating the result


Open Wonderland - http://openwonderland.org