Package org.jdesktop.wonderland.client.assetmgr

Examples of org.jdesktop.wonderland.client.assetmgr.Asset


        if (assetList.size() == 0) {
            logger.fine("Unable to find asset in cache for " +
                    assetURI.toExternalForm());
            return null;
        }
        Asset asset = assetList.get(0);
        return asset.getChecksum();
    }
View Full Code Here


        if (assetList.size() == 0) {
            logger.fine("Unable to find asset in cache for " +
                    assetURI.toExternalForm());
            return null;
        }
        Asset asset = assetList.get(0);
        return asset.getChecksum();
    }
View Full Code Here

            JarURI uri = new JarURI(this.url.toExternalForm());
            ModuleAssetRepositoryFactory factory = new ModuleAssetRepositoryFactory(uri);

            // Next, we ask the asset manager for the asset and wait for it to
            // be loaded
            Asset asset = AssetManager.getAssetManager().getAsset(uri, factory);
            if (asset == null || AssetManager.getAssetManager().waitForAsset(asset) == false) {
                throw new IOException("No such asset " + url);
            }

            return new AssetInputStream(asset);
View Full Code Here

            // First create a factory to handle the loading from a url
            WlHttpURI uri = new WlHttpURI(this.url.toExternalForm());

            // Next, we ask the asset manager for the asset and wait for it to
            // be loaded
            Asset asset = AssetManager.getAssetManager().getAsset(uri);
            if (asset == null || AssetManager.getAssetManager().waitForAsset(asset) == false) {
                throw new IOException("No such asset " + url);
            }
            return new AssetInputStream(asset);
        } catch (URISyntaxException excp) {
View Full Code Here

            // factory to handle its loading.
            ModuleURI uri = new ArtURI(this.url.toExternalForm());

            // Next, we ask the asset manager for the asset and wait for it to
            // be loaded
            Asset asset = AssetManager.getAssetManager().getAsset(uri);
            if (asset == null || AssetManager.getAssetManager().waitForAsset(asset) == false) {
                throw new IOException("No such asset "+url);
            }
            return new AssetInputStream(asset);
        } catch (URISyntaxException excp) {
View Full Code Here

            // First create a factory to handle the loading from a url
            ContentURI uri = new ContentURI(this.url.toExternalForm());

            // Next, we ask the asset manager for the asset and wait for it to
            // be loaded
            Asset asset = AssetManager.getAssetManager().getAsset(uri);
            if (asset == null || AssetManager.getAssetManager().waitForAsset(asset) == false) {
                throw new IOException("No such asset "+url);
            }
            return new AssetInputStream(asset);
        } catch (URISyntaxException excp) {
View Full Code Here

            final int j = i;
            threads[i] = new Thread() {
                public void run() {
                    try {
                        AssetURI assetURI = new AssetURI(urls[j]);
                        Asset asset = assetManager.getAsset(assetURI, AssetType.FILE);
                        assertTrue(assetManager.waitForAsset(asset));
                        assertNull(asset.getFailureInfo());
                        assertNotNull(asset.getLocalCacheFile());
                        System.out.println("Done with: " + assetURI.toString());
                    } catch (java.net.URISyntaxException excp) {
                        System.out.println(excp.toString());
                    }
                }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.client.assetmgr.Asset

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.