fi.hut.tml.xsmiles
Class Resources

java.lang.Object
  extended byfi.hut.tml.xsmiles.Resources

public class Resources
extends java.lang.Object

This class is used to get an URL to a resource, which can be either in the jar or in the development environment file

Author:
honkkis

Field Summary
protected static java.util.Hashtable resourceTable
           
 
Constructor Summary
Resources()
           
 
Method Summary
protected static void addResourceString(java.lang.String id, java.lang.String file)
           
protected static void addResourceURL(java.lang.String id, java.lang.String file)
           
protected static java.net.URL findResourceURL(java.lang.String file)
           
static java.lang.String getResourceString(java.lang.String id)
           
static java.net.URL getResourceURL(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resourceTable

protected static java.util.Hashtable resourceTable
Constructor Detail

Resources

public Resources()
Method Detail

getResourceURL

public static java.net.URL getResourceURL(java.lang.String id)
                                   throws java.net.MalformedURLException
Returns:
url to a browser resource
Throws:
java.net.MalformedURLException

getResourceString

public static java.lang.String getResourceString(java.lang.String id)
                                          throws XSmilesException
Throws:
XSmilesException

addResourceURL

protected static void addResourceURL(java.lang.String id,
                                     java.lang.String file)
Returns:
url to a browser resource

addResourceString

protected static void addResourceString(java.lang.String id,
                                        java.lang.String file)

findResourceURL

protected static java.net.URL findResourceURL(java.lang.String file)
Returns:
url to a browser resource


X-Smiles 1.2