| com.izforge.izpack.util.os.RegistryHandler com.izforge.izpack.util.os.Win_RegistryHandler
Win_RegistryHandler | public class Win_RegistryHandler extends RegistryHandler (Code) | | This is the Microsoft Windows specific implementation of RegistryHandler .
author: bartzkau |
Method Summary | |
public void | activateLogging() Activates logging of registry changes. | public void | addLoggingInfo(List info) | public void | createKey(String key) Creates the given key in the registry. | public void | deleteKey(String key) Deletes the given key if exist, else throws an exception. | public void | deleteKeyIfEmpty(String key) Deletes a key under the current root if it is empty, else do nothing. | public void | deleteValue(String key, String value) Deletes a value. | public List<Object> | getLoggingInfo() | public int | getRoot() Return the root as integer (HKEY_xxx). | public String[] | getSubkeys(String key) Returns all keys which are defined under the given key. | public RegDataContainer | getValue(String key, String value, RegDataContainer defaultVal) Returns the contents of the key/value pair if value exist, else the given default value. | public RegDataContainer | getValue(String key, String value) Returns the contents of the key/value pair if value exist, else an exception is raised. | public String[] | getValueNames(String key) Returns all value names which are defined under the given key. | public boolean | keyExist(String key) Returns whether a key exist or not. | public void | resetLogging() Resets logging of registry changes. | public void | rewind() | public void | setLoggingInfo(List info) | public void | setRoot(int i) Sets the root for the next registry access. | public void | setValue(String key, String value, String contents) Sets the given contents to the given registry value. | public void | setValue(String key, String value, String[] contents) Sets the given contents to the given registry value. | public void | setValue(String key, String value, byte[] contents) Sets the given contents to the given registry value. | public void | setValue(String key, String value, long contents) Sets the given contents to the given registry value. | public void | suspendLogging() Suspends logging of registry changes. | public boolean | valueExist(String key, String value) Returns whether a the given value under the given key exist or not. |
Win_RegistryHandler | public Win_RegistryHandler()(Code) | | Default constructor.
|
getValue | public RegDataContainer getValue(String key, String value, RegDataContainer defaultVal) throws NativeLibException(Code) | | Returns the contents of the key/value pair if value exist, else the given default value.
Parameters: key - the registry key which should be used Parameters: value - the registry value from which the contents should be requested Parameters: defaultVal - value to be used if no value exist in the registry requested value if exist, else the default value throws: NativeLibException - |
getValue | public RegDataContainer getValue(String key, String value) throws NativeLibException(Code) | | Returns the contents of the key/value pair if value exist, else an exception is raised.
Parameters: key - the registry key which should be used Parameters: value - the registry value from which the contents should be requested requested value if exist, else an exception throws: NativeLibException - |
getValueNames | public String[] getValueNames(String key) throws NativeLibException(Code) | | Returns all value names which are defined under the given key.
Parameters: key - key to be used as path for the value names all value names which are defined under the given key throws: NativeLibException - |
setValue | public void setValue(String key, String value, String contents) throws NativeLibException(Code) | | Sets the given contents to the given registry value. If a sub key or the registry value does
not exist, it will be created. The return value is a String array which contains the names of
the keys and values which are created. REG_SZ is used as registry value type.
Parameters: key - the registry key which should be used or created Parameters: value - the registry value into which the contents should be set Parameters: contents - the contents for the value throws: NativeLibException - throws: NativeLibException - |
setValue | public void setValue(String key, String value, String[] contents) throws NativeLibException(Code) | | Sets the given contents to the given registry value. If a sub key or the registry value does
not exist, it will be created. The return value is a String array which contains the names of
the keys and values which are created. REG_MULTI_SZ is used as registry value type.
Parameters: key - the registry key which should be used or created Parameters: value - the registry value into which the contents should be set Parameters: contents - the contents for the value throws: NativeLibException - |
setValue | public void setValue(String key, String value, byte[] contents) throws NativeLibException(Code) | | Sets the given contents to the given registry value. If a sub key or the registry value does
not exist, it will be created. The return value is a String array which contains the names of
the keys and values which are created. REG_BINARY is used as registry value type.
Parameters: key - the registry key which should be used or created Parameters: value - the registry value into which the contents should be set Parameters: contents - the contents for the value throws: NativeLibException - |
setValue | public void setValue(String key, String value, long contents) throws NativeLibException(Code) | | Sets the given contents to the given registry value. If a sub key or the registry value does
not exist, it will be created. The return value is a String array which contains the names of
the keys and values which are created. REG_DWORD is used as registry value type.
Parameters: key - the registry key which should be used or created Parameters: value - the registry value into which the contents should be set Parameters: contents - the contents for the value throws: NativeLibException - |
valueExist | public boolean valueExist(String key, String value) throws NativeLibException(Code) | | Returns whether a the given value under the given key exist or not.
Parameters: key - key to be used as path for the value Parameters: value - value name to be evaluated whether a the given value under the given key exist or not throws: NativeLibException - |
Methods inherited from com.izforge.izpack.util.os.RegistryHandler | public void activateLogging() throws NativeLibException(Code)(Java Doc) public void addLoggingInfo(List info) throws NativeLibException(Code)(Java Doc) public void createKey(String key) throws NativeLibException(Code)(Java Doc) public void deleteKey(String key) throws NativeLibException(Code)(Java Doc) public void deleteKeyIfEmpty(String key) throws NativeLibException(Code)(Java Doc) public void deleteValue(String key, String value) throws NativeLibException(Code)(Java Doc) public boolean doPerform()(Code)(Java Doc) public RegistryHandler getDefaultHandler()(Code)(Java Doc) public List<Object> getLoggingInfo() throws NativeLibException(Code)(Java Doc) public int getRoot() throws NativeLibException(Code)(Java Doc) public String[] getSubkeys(String key) throws NativeLibException(Code)(Java Doc) public String getUninstallName()(Code)(Java Doc) public RegDataContainer getValue(String key, String value, RegDataContainer defaultVal) throws NativeLibException(Code)(Java Doc) public RegDataContainer getValue(String key, String value) throws NativeLibException(Code)(Java Doc) public String[] getValueNames(String key) throws NativeLibException(Code)(Java Doc) public boolean isProductRegistered() throws NativeLibException(Code)(Java Doc) public boolean keyExist(String key) throws NativeLibException(Code)(Java Doc) public void registerUninstallKey() throws NativeLibException(Code)(Java Doc) public void resetLogging() throws NativeLibException(Code)(Java Doc) public void rewind() throws NativeLibException(Code)(Java Doc) public void setLoggingInfo(List info) throws NativeLibException(Code)(Java Doc) public void setRoot(int i) throws NativeLibException(Code)(Java Doc) public void setUninstallName(String name)(Code)(Java Doc) public void setValue(String key, String value, String contents) throws NativeLibException(Code)(Java Doc) public void setValue(String key, String value, String[] contents) throws NativeLibException(Code)(Java Doc) public void setValue(String key, String value, byte[] contents) throws NativeLibException(Code)(Java Doc) public void setValue(String key, String value, long contents) throws NativeLibException(Code)(Java Doc) public void suspendLogging() throws NativeLibException(Code)(Java Doc) public boolean valueExist(String key, String value) throws NativeLibException(Code)(Java Doc) public boolean verify(AutomatedInstallData idata) throws Exception(Code)(Java Doc)
|
|
|