org.jagatoo.loaders.textures.locators
Class TextureStreamLocatorURL

java.lang.Object
  extended by 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
 
Method Summary
 java.lang.String getBaseDirName()
           
 java.net.URL getBaseUrl()
           
 java.io.InputStream openTextureStream(java.lang.String name)
           
 void setBaseUrl(java.net.URL baseUrl)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseUrl

protected java.net.URL baseUrl
Constructor Detail

TextureStreamLocatorURL

public TextureStreamLocatorURL(java.net.URL baseUrl)
Creates a new instance of FileTextureStreamLocator

Method Detail

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