|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.moyosoft.connector.registry.RegistryKey
| Method Summary | |
void |
close()
Closes this registry key. |
RegistryKey |
createKey(java.lang.String subKey)
Creates the specified sub-key in this registry key. |
void |
deleteKey(java.lang.String subKey)
Deletes the specified sub-key from this registry key. |
void |
deleteValue(java.lang.String valueName)
Deletes the specified value from this registry key. |
void |
deleteValue(java.lang.String subKey,
java.lang.String valueName)
Deletes the specified value in the specified sub-key of this registry key. |
void |
finalize()
|
void |
flush()
Writes all the attributes of this registry key into the registry. |
byte[] |
getBinaryValue(java.lang.String valueName)
Returns the specified Binary value from this registry key. |
int |
getIntegerValue(java.lang.String valueName)
Returns the specified Integer value from this registry key. |
java.lang.String |
getStringValue(java.lang.String valueName)
Returns the specified String value from this registry key. |
java.util.Iterator |
getSubKeys()
Returns an iterator of all sub keys' names. |
RegistryValue |
getValue(java.lang.String valueName)
Returns the specified value from this registry key. |
RegistryValue |
getValue(java.lang.String subKey,
java.lang.String valueName)
Returns the specified value from the specified sub-key of this registry key. |
java.lang.String |
getValueAsString(java.lang.String valueName)
Returns the specified value from this registry key formatted as a string. |
java.util.Iterator |
getValues()
Returns an iterator of all values' names in this registry key. |
RegistryKey |
openKey(java.lang.String subKey)
Opens the specified sub-key of this registry key. |
void |
setValue(java.lang.String valueName,
byte[] binaryData)
Sets the specified Binary data value in this registry key. |
void |
setValue(java.lang.String valueName,
int value)
Sets the specified Integer value in this registry key. |
void |
setValue(java.lang.String valueName,
RegistryValue value)
Sets the specified value in this registry key. |
void |
setValue(java.lang.String valueName,
java.lang.String value)
Sets the specified String value in this registry key. |
void |
setValue(java.lang.String subKey,
java.lang.String valueName,
RegistryValue value)
Sets the specified value in the specified sub-key of this registry key. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public RegistryKey openKey(java.lang.String subKey)
throws RegistryException
subKey - the sub-key to be opened.
RegistryException - if this key has been closed or the specified sub-key doens't exist or any other unexpected error occurs.
public RegistryKey createKey(java.lang.String subKey)
throws RegistryException
subKey - the sub-key to be created or opened.
RegistryException - if this key has been closed or any other error occurs.
public void deleteKey(java.lang.String subKey)
throws RegistryException
subKey - the sub-key to be deleted.
RegistryException - if this key has been closed or any other error occurs.
public void deleteValue(java.lang.String subKey,
java.lang.String valueName)
throws RegistryException
Is equivalent to:
openKey(subKey).deleteValue(valueName);
subKey - the sub-key where the value is stored.valueName - the value name to be deleted.
RegistryException - if this key has been closed or any other error occurs.
public void deleteValue(java.lang.String valueName)
throws RegistryException
valueName - the value name to be deleted.
RegistryException - if this key has been closed or any other error occurs.
public java.util.Iterator getSubKeys()
throws RegistryException
RegistryException - if this key has been closed or any other error occurs.
public java.util.Iterator getValues()
throws RegistryException
RegistryException - if this key has been closed or any other error occurs.
public RegistryValue getValue(java.lang.String subKey,
java.lang.String valueName)
throws RegistryException
Is equivalent to:
openKey(subKey).getValue(valueName);
subKey - the sub-key where the value is stored.valueName - the name of the value to be returned.
RegistryException - if this key has been closed or any other error occurs.
public RegistryValue getValue(java.lang.String valueName)
throws RegistryException
valueName - the name of the value to be returned.
RegistryException - if this key has been closed or any other error occurs.
public java.lang.String getValueAsString(java.lang.String valueName)
throws RegistryException
Is equivalent to:
getValue(valueName).getAsString();
valueName - the name of the value to be returned.
RegistryException - if this key has been closed or any other error occurs.
public java.lang.String getStringValue(java.lang.String valueName)
throws RegistryException
Is equivalent to:
getValue(valueName).getString();
valueName - the name of the value to be returned.
RegistryException - if this key has been closed or any other error occurs.
public int getIntegerValue(java.lang.String valueName)
throws RegistryException
Is equivalent to:
getValue(valueName).getInteger();
valueName - the name of the value to be returned.
RegistryException - if this key has been closed or any other error occurs.
public byte[] getBinaryValue(java.lang.String valueName)
throws RegistryException
Is equivalent to:
getValue(valueName).getBinaryData();
valueName - the name of the value to be returned.
RegistryException - if this key has been closed or any other error occurs.
public void setValue(java.lang.String valueName,
RegistryValue value)
throws RegistryException
valueName - the name of the value to be set.value - the value to be set.
RegistryException - if this key has been closed or any other error occurs.
public void setValue(java.lang.String subKey,
java.lang.String valueName,
RegistryValue value)
throws RegistryException
Is equivalent to:
openKey(subKey).setValue(valueName, value);
subKey - the sub-key where the value will be stored.valueName - the name of the value to be set.value - the value to be set.
RegistryException - if this key has been closed or any other error occurs.
public void setValue(java.lang.String valueName,
java.lang.String value)
throws RegistryException
valueName - the name of the value to be set.value - the value to be set.
RegistryException - if this key has been closed or any other error occurs.
public void setValue(java.lang.String valueName,
int value)
throws RegistryException
valueName - the name of the value to be set.value - the value to be set.
RegistryException - if this key has been closed or any other error occurs.
public void setValue(java.lang.String valueName,
byte[] binaryData)
throws RegistryException
valueName - the name of the value to be set.binaryData - the value to be set.
RegistryException - if this key has been closed or any other error occurs.
public void flush()
throws RegistryException
RegistryException - if this key has been closed or any other error occurs.
public void close()
throws RegistryException
RegistryExceptionpublic void finalize()
finalize in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||