Package jetbrains.buildServer.util
Class Win32RegistryNativeAccessorImpl
- java.lang.Object
-
- jetbrains.buildServer.util.Win32RegistryNativeAccessorImpl
-
- All Implemented Interfaces:
Win32RegistryAccessor
public class Win32RegistryNativeAccessorImpl extends Object implements Win32RegistryAccessor
- Author:
- Eugene Petrenko Created: 15.03.2010 11:15:38
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface jetbrains.buildServer.util.Win32RegistryAccessor
Win32RegistryAccessor.Hive
-
-
Constructor Summary
Constructors Constructor Description Win32RegistryNativeAccessorImpl(Win32RegistryAccessorUnpacker unpacker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<String>
listSubKeys(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath)
Enumerates sub key names of a given keyPath.Set<String>
listValueNames(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath)
Enumerates value names of a given keyPath.File
readRegistryFile(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath, String entryName)
Tries to read registryString
readRegistryText(Win32RegistryAccessor.Hive hive, Bitness bitness, String keyPath, String entryName)
Tries to read registry
-
-
-
Constructor Detail
-
Win32RegistryNativeAccessorImpl
public Win32RegistryNativeAccessorImpl(Win32RegistryAccessorUnpacker unpacker)
-
-
Method Detail
-
listSubKeys
@NotNull public Set<String> listSubKeys(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath)
Description copied from interface:Win32RegistryAccessor
Enumerates sub key names of a given keyPath. i.e. for HKLM/Software/Microsoft it will definitely return 'Windows'- Specified by:
listSubKeys
in interfaceWin32RegistryAccessor
- Parameters:
hive
- hivebitness
- registry branch - x32 or x64.keyPath
- path to search- Returns:
- key names without paths
-
readRegistryText
public String readRegistryText(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath, @NotNull String entryName)
Description copied from interface:Win32RegistryAccessor
Tries to read registry- Specified by:
readRegistryText
in interfaceWin32RegistryAccessor
- Parameters:
hive
- hive to look intobitness
- registry branch - x32 or x64.keyPath
- path to read.entryName
- key to read- Returns:
- read value or null
-
readRegistryFile
public File readRegistryFile(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath, @NotNull String entryName)
Description copied from interface:Win32RegistryAccessor
Tries to read registry- Specified by:
readRegistryFile
in interfaceWin32RegistryAccessor
- Parameters:
hive
- hive to look intobitness
- registry branch - x32 or x64.keyPath
- path to read.entryName
- entryName to read- Returns:
- read File if read text is a path to an existing file or null
-
listValueNames
@NotNull public Set<String> listValueNames(@NotNull Win32RegistryAccessor.Hive hive, @NotNull Bitness bitness, @NotNull String keyPath)
Description copied from interface:Win32RegistryAccessor
Enumerates value names of a given keyPath.- Specified by:
listValueNames
in interfaceWin32RegistryAccessor
- Parameters:
hive
- hivebitness
- registry branch - x32 or x64.keyPath
- path to search- Returns:
- entries names without paths
-
-