|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.asset.plugins.ClasspathLocator
public class ClasspathLocator
The ClasspathLocator
looks up an asset in the classpath.
Constructor Summary | |
---|---|
ClasspathLocator()
|
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 ClasspathLocator()
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 |