Package com.jme3.asset.plugins
Class UrlAssetInfo
java.lang.Object
com.jme3.asset.AssetInfo
com.jme3.asset.plugins.UrlAssetInfo
Handles loading of assets from a URL
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic UrlAssetInfocreate(AssetManager assetManager, AssetKey key, URL url) booleanImplementations of this method should return anInputStreamallowing access to the data represented by theAssetKey.Methods inherited from class com.jme3.asset.AssetInfo
getKey, getManager, toString
-
Method Details
-
create
public static UrlAssetInfo create(AssetManager assetManager, AssetKey key, URL url) throws IOException - Throws:
IOException
-
hasInitialConnection
public boolean hasInitialConnection() -
openStream
Description copied from class:AssetInfoImplementations of this method should return anInputStreamallowing access to the data represented by theAssetKey.Each invocation of this method should return a new stream to the asset data, starting at the beginning of the file.
- Specified by:
openStreamin classAssetInfo- Returns:
- The asset data.
-