|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.asset.plugins.UrlLocator
public class UrlLocator
UrlLocator
is a locator that combines a root URL
and the given path in the AssetKey to construct a new URL
that allows locating the asset.
Constructor Summary | |
---|---|
UrlLocator()
|
Method Summary | |
---|---|
AssetInfo |
locate(AssetManager manager,
AssetKey key)
Request to locate an asset. |
void |
setRootPath(java.lang.String rootPath)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UrlLocator()
Method Detail |
---|
public void setRootPath(java.lang.String rootPath)
setRootPath
in interface AssetLocator
rootPath
- The root path where to look for assets.
Typically this method will only be called once per
instance of an asset locator.public AssetInfo locate(AssetManager manager, AssetKey key)
AssetLocator
AssetInfo
implementation provided should have a proper
return value for its AssetInfo.openStream()
method.
locate
in interface AssetLocator
AssetInfo
that was located, or null if not found.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |