|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sentilla.system.DriverAdapter
com.sentilla.system.PropertyDriver
public abstract class PropertyDriver
A PropertyDriver
provides open, create, and remove for
properties. The property system uses strings for names and returns RandomAccessFile
interfaces for data access. When creating new properties,
the maximum file size must be specified at creation time. "prop" is used as
the default driver name.
Field Summary |
---|
Fields inherited from class com.sentilla.system.DriverAdapter |
---|
m_nextDriver |
Constructor Summary | |
---|---|
PropertyDriver()
|
Method Summary | |
---|---|
static RandomAccessFile |
create(String key,
int maxlength)
Create a new property or thrown an IORuntimeException if the property cannot be created. |
abstract RandomAccessFile |
createProperty(String key,
int maxlength)
Create a new property or thrown an IORuntimeException if the property cannot be created. |
static RandomAccessFile |
open(String key)
Open an existing property or thrown an IORuntimeException if the property does not exist. |
abstract RandomAccessFile |
openProperty(String key)
Open an existing property or thrown an IORuntimeException if the property does not exist. |
static void |
remove(String key)
Remove a property or throw an IORuntimeException if the property cannot be removed. |
abstract void |
removeProperty(String key)
Remove a property or thrown an IORuntimeException if the property cannot be removed. |
static void |
reset()
Delete all user properties and set system properties back to their defaults. |
abstract void |
resetProperties()
Delete all user properties and set system properties back to their defaults. |
Methods inherited from class com.sentilla.system.DriverAdapter |
---|
getDriverName, getNextDriver, setNextDriver |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyDriver()
Method Detail |
---|
public abstract RandomAccessFile openProperty(String key)
key
- the property name to open
public abstract RandomAccessFile createProperty(String key, int maxlength)
key
- the property name to createmaxlength
- the maximum data length
public abstract void removeProperty(String key)
key
- the property name to removepublic abstract void resetProperties()
public static RandomAccessFile open(String key)
key
- the property name to open
public static RandomAccessFile create(String key, int maxlength)
key
- the property name to createmaxlength
- the maximum data length
public static void remove(String key)
Warning: you may remove system properties with this method; they will not be restored until the reset() method is called. Removing system properties may cause undesired behavior.
key
- the property name to removepublic static void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |