|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectopencard.core.util.SystemAccess
public class SystemAccess
Singleton that provides access to protected system resources
like file I/O, properties, native code.
Thread safe: each thread can only access its own SystemAccess class.
This is the default SystemAccess class used by OpenCard.
To run OpenCard under a browser install the browser specific
SystemAccess class in the applets init() method as follows:
opencard.core.util.SystemAccess sys =
opencard.opt.vendorX.VendorXSystemAccess();
opencard.core.util.SystemAccess.setSystemAccess(sys);
MicrosoftSystemAccess
,
NetscapeSystemAccess
Constructor Summary | |
---|---|
SystemAccess()
|
Method Summary | |
---|---|
boolean |
getBoolean(java.lang.String key)
Access system properties |
java.util.Properties |
getProperties()
Access system properties |
java.lang.String |
getProperty(java.lang.String key)
Access system properties |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String def)
Access system properties |
static SystemAccess |
getSystemAccess()
Return the instance of SystemAccess associated with the current thread. |
void |
loadLibrary(java.lang.String libName)
Link to a native DLL. |
java.util.Properties |
loadProperties(java.lang.String filename)
Access system properties |
static void |
setSystemAccess(SystemAccess newSystemAccess)
Set the SystemAccess instance for the current thread. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemAccess()
Method Detail |
---|
public boolean getBoolean(java.lang.String key)
public java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String key)
public java.lang.String getProperty(java.lang.String key, java.lang.String def)
public static SystemAccess getSystemAccess()
public void loadLibrary(java.lang.String libName)
public java.util.Properties loadProperties(java.lang.String filename) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public static void setSystemAccess(SystemAccess newSystemAccess)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |