com.starteam.util
Class Registry

java.lang.Object
  extended by com.starteam.util.Registry

public final class Registry
extends java.lang.Object

Provides functions for accessing the Windows Registry via a JNI library. Typically useful for applications that run on Windows platforms


Field Summary
static Registry HKEY_CLASSES_ROOT
          The Registry Hive HKEY_CLASSES_ROOT
static Registry HKEY_CURRENT_USER
          The Registry Hive HKEY_CURENT_USER
static Registry HKEY_LOCAL_MACHINE
          The Registry Hive HKEY_LOCAL_MACHINE
 
Method Summary
 java.lang.String getStringKey(java.lang.String keyPath, java.lang.String keyName)
          Function to get a string value for a specific registry key.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

HKEY_CLASSES_ROOT

public static final Registry HKEY_CLASSES_ROOT
The Registry Hive HKEY_CLASSES_ROOT


HKEY_CURRENT_USER

public static final Registry HKEY_CURRENT_USER
The Registry Hive HKEY_CURENT_USER


HKEY_LOCAL_MACHINE

public static final Registry HKEY_LOCAL_MACHINE
The Registry Hive HKEY_LOCAL_MACHINE

Method Detail

getStringKey

public java.lang.String getStringKey(java.lang.String keyPath,
                                     java.lang.String keyName)
Function to get a string value for a specific registry key.

Parameters:
keyPath - Full path name to string-valued registry key (e.g. "Software\Starbase\SBToolbar\Options").
keyName - Name of string-valued key to get value of (e.g. "DisplayAtStartup").
Returns:
String value, if it exists, otherwise null.


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.