com.jme3.asset
Class AssetInfo
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
manager
protected AssetManager manager
key
protected AssetKey key
AssetInfo
public AssetInfo(AssetManager manager,
AssetKey key)
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.