org.littleshoot.util
Class WindowsRegistry

java.lang.Object
  extended by org.littleshoot.util.WindowsRegistry

public class WindowsRegistry
extends Object

Utility class for reading from the registry.


Constructor Summary
WindowsRegistry()
           
 
Method Summary
static String read(String key, String valueName)
          Reads the value of a registry key.
static int write(String key, String valueName, String valueData)
          Reads the value of a registry key.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsRegistry

public WindowsRegistry()
Method Detail

write

public static final int write(String key,
                              String valueName,
                              String valueData)
Reads the value of a registry key.

Parameters:
key - The registry key to query.
valueName - Name of the registry value.
Returns:

read

public static final String read(String key,
                                String valueName)
Reads the value of a registry key.

Parameters:
key - The registry key to query.
valueName - Name of the registry value.
Returns:
registry value or the empty string if not found.


Copyright © 2011-2013 LittleShoot. All Rights Reserved.