org.jagatoo.loaders.textures.locators
Class TextureStreamLocatorFile

java.lang.Object
  extended by org.jagatoo.loaders.textures.locators.TextureStreamLocatorFile
All Implemented Interfaces:
TextureStreamLocator

public class TextureStreamLocatorFile
extends java.lang.Object
implements TextureStreamLocator

Locates a textures from a java.io.File object


Field Summary
protected  java.io.File baseDir
           
 
Constructor Summary
TextureStreamLocatorFile(java.io.File baseDir)
          Creates a new instance of FileTextureStreamLocator
TextureStreamLocatorFile(java.lang.String baseDir)
          Creates a new instance of FileTextureStreamLocator
 
Method Summary
 java.io.File getBaseDir()
           
 java.lang.String getBaseDirName()
           
 java.io.InputStream openTextureStream(java.lang.String name)
           
 void setBaseDir(java.io.File baseDir)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

baseDir

protected java.io.File baseDir
Constructor Detail

TextureStreamLocatorFile

public TextureStreamLocatorFile(java.io.File baseDir)
Creates a new instance of FileTextureStreamLocator


TextureStreamLocatorFile

public TextureStreamLocatorFile(java.lang.String baseDir)
Creates a new instance of FileTextureStreamLocator

Method Detail

getBaseDirName

public java.lang.String getBaseDirName()
Specified by:
getBaseDirName in interface TextureStreamLocator

getBaseDir

public java.io.File getBaseDir()

setBaseDir

public void setBaseDir(java.io.File baseDir)

openTextureStream

public java.io.InputStream openTextureStream(java.lang.String name)
Specified by:
openTextureStream in interface TextureStreamLocator