|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amx.duet.tools.util.Reg
This class is a wrapper class to simplify Registry editting.
Constructor Summary | |
Reg()
Default constructor. |
|
Reg(java.lang.String appkey)
|
Method Summary | |
java.lang.String |
getAppKey()
Returns the application registry root key, which was created through setAppKey() . |
java.lang.String |
getCurrentKey()
Returns the currentKey set by calls to setCurrentKey() or setAppKey . |
int |
getDebugState()
Gets the current diagnostic state. |
java.lang.String |
readKey(java.lang.String regKey)
Retrieves an entry’s (specified by name) value from the currentKey. |
boolean |
removeKey(java.lang.String regKey)
Removes a key from the registry including all of the key’s values and any sub-keys and their values. |
void |
setAppKey(java.lang.String key)
Sets the registry application root key. |
int |
setCurrentKey(java.lang.String key)
Sets the currentKey setting for the Registry object to the specified key. |
void |
setDebug(boolean bState)
Deprecated. Do not use this method; use setDebugState instead |
void |
setDebugState(int nState)
Puts the class into a debug diagnostic state. |
boolean |
writeKey(java.lang.String regKey,
java.lang.String value)
Writes the entry specified by name to value. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Reg()
public Reg(java.lang.String appkey)
appkey
- Method Detail |
public void setAppKey(java.lang.String key)
key
- String specifying the key pathpublic java.lang.String getAppKey()
setAppKey()
.
public int setCurrentKey(java.lang.String key)
key
- a String object containing the desired key path
public java.lang.String getCurrentKey()
setCurrentKey()
or setAppKey
.
public boolean writeKey(java.lang.String regKey, java.lang.String value)
regKey
- a String object containing the name to setvalue
- a String object containing the value to set
public java.lang.String readKey(java.lang.String regKey)
regKey
- a String containing the name of the value to retrieve
public boolean removeKey(java.lang.String regKey)
regKey
- a String object containing the key path
public void setDebug(boolean bState)
bState
- public void setDebugState(int nState)
nState
- public int getDebugState()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |