org.jagatoo.loaders.textures.locators
Class TextureStreamLocatorURL
java.lang.Object
org.jagatoo.loaders.textures.locators.TextureStreamLocatorURL
- All Implemented Interfaces:
- TextureStreamLocator
public class TextureStreamLocatorURL
- extends java.lang.Object
- implements TextureStreamLocator
Locates a texture from an URL.
|
Field Summary |
protected java.net.URL |
baseUrl
|
|
Constructor Summary |
TextureStreamLocatorURL(java.net.URL baseUrl)
Creates a new instance of FileTextureStreamLocator |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
baseUrl
protected java.net.URL baseUrl
TextureStreamLocatorURL
public TextureStreamLocatorURL(java.net.URL baseUrl)
- Creates a new instance of FileTextureStreamLocator
getBaseDirName
public java.lang.String getBaseDirName()
- Specified by:
getBaseDirName in interface TextureStreamLocator
getBaseUrl
public java.net.URL getBaseUrl()
setBaseUrl
public void setBaseUrl(java.net.URL baseUrl)
openTextureStream
public java.io.InputStream openTextureStream(java.lang.String name)
- Specified by:
openTextureStream in interface TextureStreamLocator