com.jme3.asset
Class AssetInfo

java.lang.Object
  extended by com.jme3.asset.AssetInfo
Direct Known Subclasses:
UrlAssetInfo

public abstract class AssetInfo
extends java.lang.Object

The result of locating an asset through an AssetKey. Provides a means to read the asset data through an InputStream.


Field Summary
protected  AssetKey key
           
protected  AssetManager manager
           
 
Constructor Summary
AssetInfo(AssetManager manager, AssetKey key)
           
 
Method Summary
 AssetKey getKey()
           
 AssetManager getManager()
           
abstract  java.io.InputStream openStream()
          Implementations of this method should return an InputStream allowing access to the data represented by the AssetKey.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

manager

protected AssetManager manager

key

protected AssetKey key
Constructor Detail

AssetInfo

public AssetInfo(AssetManager manager,
                 AssetKey key)
Method Detail

getKey

public AssetKey getKey()

getManager

public AssetManager getManager()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

openStream

public abstract java.io.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.