com.jme3.asset.plugins
Class UrlAssetInfo

java.lang.Object
  extended by com.jme3.asset.AssetInfo
      extended by com.jme3.asset.plugins.UrlAssetInfo

public class UrlAssetInfo
extends AssetInfo

Handles loading of assets from a URL


Field Summary
 
Fields inherited from class com.jme3.asset.AssetInfo
key, manager
 
Method Summary
static UrlAssetInfo create(AssetManager assetManager, AssetKey key, java.net.URL url)
           
 boolean hasInitialConnection()
           
 java.io.InputStream openStream()
          Implementations of this method should return an InputStream allowing access to the data represented by the AssetKey.
 
Methods inherited from class com.jme3.asset.AssetInfo
getKey, getManager, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

create

public static UrlAssetInfo create(AssetManager assetManager,
                                  AssetKey key,
                                  java.net.URL url)
                           throws java.io.IOException
Throws:
java.io.IOException

hasInitialConnection

public boolean hasInitialConnection()

openStream

public java.io.InputStream openStream()
Description copied from class: AssetInfo
Implementations of this method should return an InputStream allowing access to the data represented by the AssetKey.

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 class AssetInfo
Returns:
The asset data.