Class UrlAssetInfo

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

public class UrlAssetInfo extends AssetInfo
Handles loading of assets from a URL
  • Method Details

    • create

      public static UrlAssetInfo create(AssetManager assetManager, AssetKey key, URL url) throws IOException
      Throws:
      IOException
    • hasInitialConnection

      public boolean hasInitialConnection()
    • openStream

      public 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.