Class AssetInfo

java.lang.Object
com.jme3.asset.AssetInfo
Direct Known Subclasses:
AndroidLocator.AndroidAssetInfo, StreamAssetInfo, UrlAssetInfo

public abstract class AssetInfo extends Object
The result of locating an asset through an AssetKey. Provides a means to read the asset data through an InputStream.
  • Field Details

  • Constructor Details

  • Method Details

    • getKey

      public AssetKey getKey()
    • getManager

      public AssetManager getManager()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • openStream

      public abstract InputStream openStream()
      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.

      Returns:
      The asset data.