utils
Class ResourceManager

java.lang.Object
  extended by utils.ResourceManager

public final class ResourceManager
extends java.lang.Object

Copyright DocJava, inc. User: lyon

Date: Mar 6, 2005

Time: 10:07:45 AM


Method Summary
 java.io.File get3dFile(java.lang.String fn)
           
 java.net.URL get3dURL(java.lang.String fn)
           
 java.io.File getAudioFile(java.lang.String fn)
           
 java.net.URL getAudioURL(java.lang.String fn)
           
 java.io.File getDataDir()
           
 java.io.File getDataDir3d()
           
 java.io.File getImageDir()
           
 java.io.File getImageFile(java.io.File f)
           
 java.io.File getImageFile(java.lang.String fn)
           
 java.io.File[] getImages()
           
 java.io.File[] getImages(java.lang.String suffix)
           
static java.io.File[] getJpgAndGifImages()
           
static ResourceManager getResourceManager()
          A factory method that returns the instance of the ResourceManager and creates it only if needed.
 java.io.File getUserDir()
           
static void main(java.lang.String[] args)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getResourceManager

public static ResourceManager getResourceManager()
A factory method that returns the instance of the ResourceManager and creates it only if needed.

Returns:
the only ResourceManager available.

main

public static void main(java.lang.String[] args)

getAudioFile

public java.io.File getAudioFile(java.lang.String fn)

getAudioURL

public java.net.URL getAudioURL(java.lang.String fn)
                         throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

get3dFile

public java.io.File get3dFile(java.lang.String fn)

get3dURL

public java.net.URL get3dURL(java.lang.String fn)
                      throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

getImageFile

public java.io.File getImageFile(java.lang.String fn)

getImageFile

public java.io.File getImageFile(java.io.File f)

getDataDir3d

public java.io.File getDataDir3d()

getImageDir

public java.io.File getImageDir()

getUserDir

public java.io.File getUserDir()

getDataDir

public java.io.File getDataDir()

getImages

public java.io.File[] getImages(java.lang.String suffix)

getImages

public java.io.File[] getImages()

getJpgAndGifImages

public static java.io.File[] getJpgAndGifImages()