fi.hut.tml.xsmiles
Class Resources
java.lang.Object
fi.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
resourceTable
protected static java.util.Hashtable resourceTable
Resources
public Resources()
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