API Reference
| Classic JavaDoc |
Class RegistryKey
java.lang.Object └ com.moyosoft.connector.registry.RegistryKey
public class RegistryKey
Methods
void | close () | |
Closes this registry key. |
createKey (String subKey) | ||
Creates the specified sub-key in this registry key. If the sub-key already exists, it is simply opened. If this method returns successfully, the returned RegistryKey object has to be closed using the method RegistryKey.close(). |
void | deleteKey (String subKey) | |
Deletes the specified sub-key from this registry key. |
void | deleteValue (String subKey, String valueName) | |
Deletes the specified value in the specified sub-key of this registry key. Is equivalent to: openKey(subKey).deleteValue(valueName); |
void | deleteValue (String valueName) | |
Deletes the specified value from this registry key. |
void | finalize () | |
void | flush () | |
Writes all the attributes of this registry key into the registry. |
byte | getBinaryValue (String valueName) | |
Returns the specified Binary value from this registry key. The value type has to be REG_BINARY, otherwise this method returns null. Is equivalent to: getValue(valueName).getBinaryData(); |
int | getIntegerValue (String valueName) | |
Returns the specified Integer value from this registry key. The value type has to be REG_DWORD, otherwise this method returns 0. Is equivalent to: getValue(valueName).getInteger(); |
String | getStringValue (String valueName) | |
Returns the specified String value from this registry key. The value type has to be REG_SZ, otherwise this method returns null. Is equivalent to: getValue(valueName).getString(); |
java.util.Iterator | getSubKeys () | |
Returns an iterator of all sub keys' names. The iterator returns java.lang.String objects. |
getValue (String subKey, String valueName) | ||
Returns the specified value from the specified sub-key of this registry key. Is equivalent to: openKey(subKey).getValue(valueName); |
getValue (String valueName) | ||
Returns the specified value from this registry key. |
String | getValueAsString (String valueName) | |
Returns the specified value from this registry key formatted as a string. Is equivalent to: getValue(valueName).getAsString(); |
java.util.Iterator | getValues () | |
Returns an iterator of all values' names in this registry key. The iterator returns java.lang.String objects. |
openKey (String subKey) | ||
Opens the specified sub-key of this registry key. If this method returns successfully, the returned RegistryKey object has to be closed using the method RegistryKey.close(). |
void | setValue (String valueName, RegistryValue value) | |
Sets the specified value in this registry key. |
void | setValue (String subKey, String valueName, RegistryValue value) | |
Sets the specified value in the specified sub-key of this registry key. Is equivalent to: openKey(subKey).setValue(valueName, value); |
void | setValue (String valueName, String value) | |
Sets the specified String value in this registry key. The type of the value is set to REG_SZ. |
void | setValue (String valueName, int value) | |
Sets the specified Integer value in this registry key. The type of the value is set to REG_DWORD. |
void | setValue (String valueName, byte binaryData) | |
Sets the specified Binary data value in this registry key. The type of the value is set to REG_BINARY. |
Community comments
Powered by JavaDocPlus