utils
Class ResourceManager
java.lang.Object
utils.ResourceManager
public final class ResourceManager
- extends java.lang.Object
Copyright DocJava, inc. User: lyon
Date: Mar 6, 2005
Time: 10:07:45 AM
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
get3dFileUrl
public java.net.URL get3dFileUrl(java.lang.String fn)
throws java.net.MalformedURLException
- Throws:
java.net.MalformedURLException
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()
getFiles
public java.io.File[] getFiles()
getJpgAndGifImages
public static java.io.File[] getJpgAndGifImages()
getImageName
public static java.lang.String getImageName(java.lang.String fn)
getFile
public java.io.File getFile(java.lang.String fileName)