|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.resources.ResLoc
public class ResLoc
This is a "shortcut" for the singleton instance of ResourceLocator.
ResourceLocator,
ResourceLocator.setSingletonInstance(ResourceLocator),
ResourceLocator.getInstance()| Constructor Summary | |
|---|---|
ResLoc()
|
|
| Method Summary | |
|---|---|
static org.jagatoo.loaders.textures.locators.TextureStreamLocator |
createAndAddTSL()
Creates a TextureStreamLocator and adds it to the TextureLoader. |
static org.jagatoo.loaders.textures.locators.TextureStreamLocator |
createAndAddTSL(java.lang.String resourceName)
Creates a TextureStreamLocator and adds it to the TextureLoader. |
static java.util.List<java.net.URL> |
findAllResources(java.lang.String extension,
boolean recursively,
boolean foldersToo)
Searches for all child resources in the current singleton ResourceLoator instance. |
static java.net.URL |
getBaseURL()
|
static java.net.URL |
getResource(java.lang.String name)
Creates a resource as a URL from this ResourceLocator. |
static java.io.InputStream |
getResourceAsStream(java.lang.String name)
Creates a resource as a URL from this ResourceLocator. |
static org.jagatoo.loaders.textures.locators.TextureStreamLocatorURL |
getTSL()
Creates a TextureStreamLocator to be added to the TextureLoader. |
static org.jagatoo.loaders.textures.locators.TextureStreamLocatorURL |
getTSL(java.lang.String resourceName)
Creates a TextureStreamLocator to be added to the TextureLoader. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResLoc()
| Method Detail |
|---|
public static java.net.URL getBaseURL()
public static java.net.URL getResource(java.lang.String name)
throws java.net.MalformedURLException
name - the relative resource to complete with this
instance's baseURL to an absolute one
java.net.MalformedURLException - if something was wrong with the resource
public static java.io.InputStream getResourceAsStream(java.lang.String name)
throws java.net.MalformedURLException,
java.io.IOException
name - the relative resource to complete with this
instance's baseURL to an absolute one
java.net.MalformedURLException - if something was wrong with the resource
java.io.IOException - when the InputStream could not be created
public static java.util.List<java.net.URL> findAllResources(java.lang.String extension,
boolean recursively,
boolean foldersToo)
extension - recursively - foldersToo -
public static org.jagatoo.loaders.textures.locators.TextureStreamLocatorURL getTSL(java.lang.String resourceName)
throws java.net.MalformedURLException
resourceName - the relative resource to complete with this
instance's baseURL to an absolute one
It is taken as the constructor's argument for the TextureStreamLocatorURL.
java.net.MalformedURLException - if something was wrong with the resourcepublic static org.jagatoo.loaders.textures.locators.TextureStreamLocatorURL getTSL()
public static org.jagatoo.loaders.textures.locators.TextureStreamLocator createAndAddTSL(java.lang.String resourceName)
throws java.net.MalformedURLException
resourceName - the relative resource to complete with this
instance's baseURL to an absolute one
It is taken as the constructor's argument for the TextureStreamLocatorURL.
java.net.MalformedURLException - if something was wrong with the resourcepublic static org.jagatoo.loaders.textures.locators.TextureStreamLocator createAndAddTSL()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||