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 UrlAssetInfo
create
(AssetManager assetManager, AssetKey key, URL url) boolean
Implementations of this method should return anInputStream
allowing 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:AssetInfo
Implementations of this method should return anInputStream
allowing 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:
openStream
in classAssetInfo
- Returns:
- The asset data.
-